python3Packages.pkutils: 1.1.1. -> 2.0.0
This commit is contained in:
parent
2707eaa112
commit
a5736f1f8a
1 changed files with 25 additions and 12 deletions
|
@ -1,35 +1,48 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, isPy3k
|
||||
, fetchFromGitHub
|
||||
, semver
|
||||
# Check Inputs
|
||||
, nose
|
||||
, pythonOlder
|
||||
, semver
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pkutils";
|
||||
version = "1.1.1";
|
||||
disabled = !isPy3k; # some tests using semver fail due to unicode errors on Py2.7
|
||||
version = "2.0.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "reubano";
|
||||
repo = "pkutils";
|
||||
rev = "v${version}";
|
||||
sha256 = "01yaq9sz6vyxk8yiss6hsmy70qj642cr2ifk0sx1mlh488flcm62";
|
||||
sha256 = "sha256-jvRUjuxlcfmJOX50bnZR/pP2Axe1KDy9/KGXTL4yPxA=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ semver ];
|
||||
propagatedBuildInputs = [
|
||||
semver
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
nose
|
||||
];
|
||||
|
||||
# Remove when https://github.com/reubano/pkutils/pull/4 merged
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt --replace "semver>=2.2.1,<2.7.3" "semver"
|
||||
# Remove when https://github.com/reubano/pkutils/pull/4 merged
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "semver>=2.2.1,<2.7.3" "semver"
|
||||
'';
|
||||
|
||||
checkInputs = [ nose ];
|
||||
pythonImportsCheck = [ "pkutils" ];
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
nosetests
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
checkPhase = "nosetests";
|
||||
pythonImportsCheck = [
|
||||
"pkutils"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A Python packaging utility library";
|
||||
|
|
Loading…
Reference in a new issue