xin/pkgs/ghexport.nix

28 lines
574 B
Nix
Raw Normal View History

2023-03-22 10:35:46 -06:00
{ buildPythonPackage, setuptools-scm, fetchFromGitHub, PyGithub, pytz, ... }:
2023-02-08 13:40:35 -07:00
buildPythonPackage rec {
pname = "ghexport";
2023-03-17 12:36:44 -06:00
version = "20220828";
2023-02-08 13:40:35 -07:00
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=";
};
}