nixpkgs/pkgs/development/tools/pur/default.nix
Frederik Rietdijk ae18d68b6b python2.pkgs: move expressions into python2-modules/ folder
Another step in further separating python2 from python3.
2022-01-16 10:00:16 +01:00

45 lines
1 KiB
Nix

{ lib
, python3
, fetchFromGitHub
}:
let
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";
version = "5.4.2";
src = fetchFromGitHub {
owner = "alanhamlett";
repo = "pip-update-requirements";
rev = version;
sha256 = "sha256-coJO9AYm0Qx0arMf/e+pZFG/VxK6bnxxXRgw7x7V2hY=";
};
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 ];
};
}