2021-04-17 20:53:19 +00:00
|
|
|
{ lib
|
2021-11-07 00:29:09 +00:00
|
|
|
, python3
|
2021-04-17 20:53:19 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2021-11-07 00:29:09 +00:00
|
|
|
let
|
|
|
|
py = python3.override {
|
|
|
|
packageOverrides = self: super: {
|
|
|
|
# newest version doesn't support click >8.0 https://github.com/alanhamlett/pip-update-requirements/issues/38
|
|
|
|
click = self.callPackage ../../../development/python-modules/click/7.nix { };
|
|
|
|
};
|
|
|
|
};
|
2021-11-08 14:23:14 +00:00
|
|
|
inherit (py.pkgs) buildPythonApplication click pytestCheckHook;
|
2021-11-07 00:29:09 +00:00
|
|
|
in
|
|
|
|
|
2021-11-08 14:23:14 +00:00
|
|
|
buildPythonApplication rec {
|
2021-04-17 20:53:19 +00:00
|
|
|
pname = "pur";
|
2021-11-07 00:29:09 +00:00
|
|
|
version = "5.4.2";
|
2021-04-17 20:53:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "alanhamlett";
|
|
|
|
repo = "pip-update-requirements";
|
|
|
|
rev = version;
|
2021-11-07 00:29:09 +00:00
|
|
|
sha256 = "sha256-coJO9AYm0Qx0arMf/e+pZFG/VxK6bnxxXRgw7x7V2hY=";
|
2021-04-17 20:53:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pur" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library for update and track the requirements";
|
|
|
|
homepage = "https://github.com/alanhamlett/pip-update-requirements";
|
|
|
|
license = with licenses; [ bsd2 ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|