groovylight/python.nix

31 lines
1 KiB
Nix
Raw Normal View History

2024-09-22 15:55:52 +00:00
# overlay python patched version with amaranth/boards updated.
final: prev: {
python3 = prev.python3.override {
packageOverrides = pyfinal: pyprev: {
amaranth = pyprev.amaranth.overridePythonAttrs {
version = "0.6.0.dev53";
src = prev.pkgs.fetchFromGitHub {
owner = "amaranth-lang";
repo = "amaranth";
rev = "e30d822a7d93ee615e70e95a9958051dcc794802";
2024-09-25 01:52:44 +00:00
# hash = "sha256-A46CMWGvqUFTp3geFFccUM9M7iECmNndzWm2GxA8XbE";
hash = "sha256-sCUipI7HcuTg3sJscoSI0UdIutnxGWSwbgpwWyZuFxk=";
2024-09-22 15:55:52 +00:00
};
doCheck = false;
# installCheckPhase = "${prev.python3.interpreter} -m unittest discover -t . -s tests -v";
};
2024-09-25 01:52:44 +00:00
amaranth-boards = pyprev.amaranth-boards.overridePythonAttrs {
version = "0.1.dev250";
src = prev.pkgs.fetchFromGitHub {
owner = "amaranth-lang";
repo = "amaranth-boards";
rev = "19b97324ecf9111c5d16377af79f82aad761c476";
hash = "sha256-0uvn91i/yuIY75lL5Oxvozdw7Q2Uw83JWo7srgEYEpI=";
};
build-system = [pyprev.pdm-backend];
dontCheckRuntimeDeps = 1;
};
2024-09-22 15:55:52 +00:00
};
};
}