2024-08-29 07:34:55 -06:00
|
|
|
{ pkgs
|
|
|
|
, buildPythonPackage
|
|
|
|
, setuptools-scm
|
|
|
|
, pytest
|
|
|
|
, appdirs
|
|
|
|
, click
|
|
|
|
, decorator
|
|
|
|
, geopy
|
|
|
|
, logzero
|
|
|
|
, lxml
|
|
|
|
, more-itertools
|
2024-08-29 14:39:30 -06:00
|
|
|
, hypothesis
|
2024-08-29 07:34:55 -06:00
|
|
|
, mypy
|
|
|
|
, orjson
|
|
|
|
, pandas
|
|
|
|
, pytz
|
|
|
|
, simplejson
|
2024-08-29 14:39:30 -06:00
|
|
|
, colorlog
|
2024-08-29 07:34:55 -06:00
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
with pkgs; let
|
|
|
|
orgparse = pkgs.python3Packages.callPackage ./orgparse.nix { inherit pkgs; };
|
2024-08-29 14:39:30 -06:00
|
|
|
cachew = pkgs.python3Packages.callPackage ./cachew.nix { inherit pkgs; };
|
|
|
|
google_takeout_parser = pkgs.python3Packages.callPackage ./google-takeout-parser.nix { inherit pkgs; };
|
2024-08-29 07:34:55 -06:00
|
|
|
kobuddy = pkgs.python3Packages.callPackage ./kobuddy.nix { inherit pkgs; };
|
|
|
|
ghexport = pkgs.python3Packages.callPackage ./ghexport.nix { inherit pkgs; };
|
2024-08-29 08:10:38 -06:00
|
|
|
kompress = buildPythonPackage rec {
|
|
|
|
pname = "kompress";
|
|
|
|
version = "0.1.20240829";
|
|
|
|
|
|
|
|
pyproject = true;
|
2024-08-29 08:11:54 -06:00
|
|
|
|
2024-08-29 08:10:38 -06:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2024-08-29 08:11:54 -06:00
|
|
|
|
2024-08-29 08:10:38 -06:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "karlicoss";
|
|
|
|
repo = pname;
|
|
|
|
rev = "b4127543d8ca22988335d2640f905b8d939f85a1";
|
|
|
|
hash = "sha256-U7o5FG2FscAhbsYd/KS/vess/eJU/A2jH/WOve0anHo=";
|
|
|
|
};
|
|
|
|
};
|
2024-08-29 07:34:55 -06:00
|
|
|
in
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "HPI";
|
2024-08-29 08:10:38 -06:00
|
|
|
version = "0.5.20240824";
|
2024-08-29 07:34:55 -06:00
|
|
|
|
2024-08-29 08:10:38 -06:00
|
|
|
pyproject = true;
|
2024-08-29 08:11:54 -06:00
|
|
|
|
2024-08-29 07:34:55 -06:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
appdirs
|
|
|
|
click
|
|
|
|
decorator
|
|
|
|
geopy
|
2024-08-29 14:39:30 -06:00
|
|
|
cachew
|
|
|
|
hypothesis
|
|
|
|
colorlog
|
2024-08-29 08:10:38 -06:00
|
|
|
kompress
|
2024-08-29 07:34:55 -06:00
|
|
|
kobuddy
|
|
|
|
logzero
|
|
|
|
lxml
|
|
|
|
ghexport
|
|
|
|
more-itertools
|
2024-08-29 14:39:30 -06:00
|
|
|
google_takeout_parser
|
2024-08-29 07:34:55 -06:00
|
|
|
mypy
|
|
|
|
orgparse
|
|
|
|
orjson
|
|
|
|
pandas
|
|
|
|
pytest
|
|
|
|
pytz
|
|
|
|
simplejson
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
buildInputs = [ mypy kobuddy ];
|
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export HOME=$(mktemp -d)
|
|
|
|
'';
|
|
|
|
|
2024-08-29 08:10:38 -06:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "karlicoss";
|
|
|
|
repo = pname;
|
|
|
|
rev = "d58453410c34d75715b71c041f7a58a4f0954436";
|
|
|
|
hash = "sha256-UMccXFUwcyQOQdJuR3f9OgjskUs99zR5HPZ5NjKdVRI=";
|
2024-08-29 07:34:55 -06:00
|
|
|
};
|
|
|
|
}
|