xin/pkgs/hpi.nix

68 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2023-09-12 08:44:05 -06:00
{ pkgs
, buildPythonPackage
, setuptools-scm
, pytest
, fetchPypi
, appdirs
, click
, decorator
, geopy
, logzero
, lxml
, more-itertools
, mypy
, orjson
, pandas
, pytz
, simplejson
, ...
2023-07-11 09:12:50 -06:00
}:
with pkgs; let
2023-09-12 08:44:05 -06:00
orgparse = pkgs.python3Packages.callPackage ./orgparse.nix { inherit pkgs; };
kobuddy = pkgs.python3Packages.callPackage ./kobuddy.nix { inherit pkgs; };
ghexport = pkgs.python3Packages.callPackage ./ghexport.nix { inherit pkgs; };
2023-07-11 09:12:50 -06:00
in
2023-09-12 08:44:05 -06:00
buildPythonPackage rec {
pname = "HPI";
version = "0.3.20230207";
2023-09-12 08:44:05 -06:00
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [
appdirs
click
decorator
geopy
kobuddy
logzero
lxml
ghexport
more-itertools
mypy
orgparse
orjson
pandas
pytest
pytz
simplejson
];
2023-09-12 08:44:05 -06:00
doCheck = true;
2023-09-12 08:44:05 -06:00
buildInputs = [ mypy kobuddy ];
2023-09-12 08:44:05 -06:00
makeWrapperArgs = [
# Add the installed directories to the python path so the daemon can find them
"--prefix PYTHONPATH : ${python3.pkgs.makePythonPath propagatedBuildInputs}"
"--prefix PYTHONPATH : $out/lib/${python3.libPrefix}/site-packages"
];
2023-09-12 08:44:05 -06:00
preCheck = ''
export HOME=$(mktemp -d)
'';
2023-09-12 08:44:05 -06:00
src = fetchPypi {
inherit pname version;
sha256 = "sha256-i3C1Lmj6K48zVG960uv1epQm38qQnxalwy8kHnLTZrE=";
};
}