36 lines
576 B
Nix
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;
|
|
}
|