2020-04-24 23:36:52 +00:00
|
|
|
{ fetchPypi
|
|
|
|
, lib
|
|
|
|
, buildPythonPackage
|
2020-06-15 15:56:04 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, attrs
|
|
|
|
, click
|
|
|
|
, effect
|
|
|
|
, jinja2
|
2020-06-15 15:56:04 +00:00
|
|
|
, git
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-black
|
|
|
|
, pytestcov
|
|
|
|
, pytest-isort
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nix-prefetch-github";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "3.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "sha256-EN+EbVXUaf+id5UsK4EBm/9k9FYaH79g08kblvW60XA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
click
|
|
|
|
effect
|
|
|
|
jinja2
|
|
|
|
];
|
|
|
|
|
2020-06-15 15:56:04 +00:00
|
|
|
checkInputs = [ pytestCheckHook pytest-black pytestcov pytest-isort git ];
|
2020-09-25 04:45:31 +00:00
|
|
|
checkPhase = ''
|
|
|
|
pytest -m 'not network'
|
|
|
|
'';
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
# latest version of isort will cause tests to fail
|
|
|
|
# ignore tests which are impure
|
|
|
|
disabledTests = [ "isort" "life" "outputs" "fetch_submodules" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Prefetch sources from github";
|
|
|
|
homepage = "https://github.com/seppeljordan/nix-prefetch-github";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ seppeljordan ];
|
|
|
|
};
|
|
|
|
}
|