python.pkgs.kaptan: 0.5.11 -> 0.5.12

This commit is contained in:
Robert Schütz 2019-04-23 10:37:44 +02:00
parent cba32c8a75
commit bdf070fe2a

View File

@ -2,27 +2,25 @@
, buildPythonPackage
, fetchPypi
, pyyaml
, pytest
}:
buildPythonPackage rec {
pname = "kaptan";
version = "0.5.11";
version = "0.5.12";
src = fetchPypi {
inherit pname version;
sha256 = "8403d6e48200c3f49cb6d6b3dcb5898aa5ab9d820831655bf9a2403e00cd4207";
sha256 = "1abd1f56731422fce5af1acc28801677a51e56f5d3c3e8636db761ed143c3dd2";
};
# https://github.com/emre/kaptan/pull/151
postPatch = ''
substituteInPlace requirements/base.txt \
--replace "PyYAML>=3.13,<4" "PyYAML>=3.13"
sed -i "s/==.*//g" requirements/test.txt
'';
propagatedBuildInputs = [ pyyaml ];
# No tests in archive
doCheck = false;
checkInputs = [ pytest ];
meta = with stdenv.lib; {
description = "Configuration manager for python applications";