commit
ccd2089415
1 changed files with 5 additions and 16 deletions
|
@ -3,34 +3,23 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
python3.pkgs.buildPythonApplication rec {
|
||||||
py = python3.override {
|
|
||||||
packageOverrides = self: super: {
|
|
||||||
# newest version doesn't support click >8.0 https://github.com/alanhamlett/pip-update-requirements/issues/38
|
|
||||||
# Use click 7
|
|
||||||
click = self.callPackage ../../../development/python2-modules/click/default.nix { };
|
|
||||||
};
|
|
||||||
};
|
|
||||||
inherit (py.pkgs) buildPythonApplication click pytestCheckHook;
|
|
||||||
in
|
|
||||||
|
|
||||||
buildPythonApplication rec {
|
|
||||||
pname = "pur";
|
pname = "pur";
|
||||||
version = "5.4.2";
|
version = "6.1.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "alanhamlett";
|
owner = "alanhamlett";
|
||||||
repo = "pip-update-requirements";
|
repo = "pip-update-requirements";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-coJO9AYm0Qx0arMf/e+pZFG/VxK6bnxxXRgw7x7V2hY=";
|
hash = "sha256-EcyDEXDgjicCRThXC+co/PwTjAxkRXVG1++JZtsSjZo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
click
|
python3.pkgs.click
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
python3.pkgs.pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "pur" ];
|
pythonImportsCheck = [ "pur" ];
|
||||||
|
|
Loading…
Reference in a new issue