My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/tools/pur/default.nix

45 lines
1.0 KiB

{ 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 ];
};
}