jetperch/package/python.nix
Jonas Rabenstein e3b0136650 initial commit
2025-09-30 12:07:41 +02:00

36 lines
576 B
Nix

{
callPackage,
python3Packages,
name,
repo ? name,
version,
hash,
pydeps ? (_: []),
...
}: let
source = callPackage ./source.nix {
inherit repo;
inherit version;
inherit hash;
};
in python3Packages.buildPythonPackage {
pname = name;
inherit version;
src = callPackage ./source.nix {
inherit repo;
inherit version;
inherit hash;
};
build-system = [ python3Packages.setuptools ];
pyproject = true;
dependencies = let
common = with python3Packages; [
cython
];
in common ++ pydeps python3Packages;
}