2019-10-26 22:36:08 +01:00
|
|
|
{ fetchPypi
|
|
|
|
, lib
|
|
|
|
, buildPythonPackage
|
2020-06-08 21:22:10 +01:00
|
|
|
, pythonOlder
|
2019-10-26 22:36:08 +01:00
|
|
|
, attrs
|
|
|
|
, click
|
|
|
|
, effect
|
|
|
|
, jinja2
|
2020-06-08 21:22:10 +01:00
|
|
|
, git
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-black
|
|
|
|
, pytestcov
|
|
|
|
, pytest-isort
|
2019-10-26 22:36:08 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nix-prefetch-github";
|
2020-06-02 15:35:26 +01:00
|
|
|
version = "2.4";
|
2019-10-26 22:36:08 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-02 15:35:26 +01:00
|
|
|
sha256 = "sha256-PVB/cL0NVB5pHxRMjg8TLatvIvHjfCvaRWBanVHYT+E=";
|
2019-10-26 22:36:08 +01:00
|
|
|
};
|
|
|
|
|
2020-06-02 15:35:26 +01:00
|
|
|
# The tests for this package require nix and network access. That's
|
|
|
|
# why we cannot execute them inside the building process.
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-10-26 22:36:08 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
click
|
|
|
|
effect
|
|
|
|
jinja2
|
|
|
|
];
|
|
|
|
|
2020-06-08 21:22:10 +01:00
|
|
|
checkInputs = [ pytestCheckHook pytest-black pytestcov pytest-isort git ];
|
|
|
|
|
|
|
|
# latest version of isort will cause tests to fail
|
|
|
|
# ignore tests which are impure
|
|
|
|
disabledTests = [ "isort" "life" "outputs" "fetch_submodules" ];
|
|
|
|
|
2019-10-26 22:36:08 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Prefetch sources from github";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/seppeljordan/nix-prefetch-github";
|
2019-10-26 22:36:08 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ seppeljordan ];
|
|
|
|
};
|
|
|
|
}
|