Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / amaranth-boards / default.nix
blob01f5dde3b562f1c2c8009a28ced3d258d401cbe9
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , amaranth
5 , setuptools
6 , setuptools-scm
7 }:
9 buildPythonPackage rec {
10   pname = "amaranth-boards";
11   version = "0-unstable-2023-12-13";
12   format = "setuptools";
13   # python setup.py --version
14   realVersion = "0.1.dev202+g${lib.substring 0 7 src.rev}";
16   src = fetchFromGitHub {
17     owner = "amaranth-lang";
18     repo = "amaranth-boards";
19     rev = "170675812b71ee722bcf8ccdb88409a9ad97ffe2";
20     hash = "sha256-dwZCKMJnEY9RjzkcJ9r3TEC7W+Wfi/P7Hjl4/d60/qo=";
21   };
23   nativeBuildInputs = [ setuptools-scm ];
24   propagatedBuildInputs = [ setuptools amaranth ];
26   preBuild = ''
27     export SETUPTOOLS_SCM_PRETEND_VERSION="${realVersion}"
28   '';
30   # no tests
31   doCheck = false;
33   meta = with lib; {
34     description = "Board definitions for Amaranth HDL";
35     homepage = "https://github.com/amaranth-lang/amaranth-boards";
36     license = licenses.bsd2;
37     maintainers = with maintainers; [ emily thoughtpolice pbsds ];
38   };