xin/pkgs/ghexport.nix
2023-06-14 10:45:32 -06:00

29 lines
582 B
Nix

{ pkgs, buildPythonPackage, setuptools-scm, fetchFromGitHub, PyGithub, pytz, ...
}:
buildPythonPackage rec {
pname = "ghexport";
version = "2022-08-28";
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ PyGithub pytz ];
doCheck = true;
buildInputs = [ ];
preCheck = ''
export HOME=$(mktemp -d)
'';
SETUPTOOLS_SCM_PRETEND_VERSION = version;
src = fetchFromGitHub {
owner = "karlicoss";
repo = pname;
rev = "e7704dc5b984731a53e74cbcadcbc3dd9c3024cd";
hash = "sha256-m/iqeBvCXHlN7GsNW6A2AX1g+ZaH3W62+Ulcfgup0KQ=";
};
}