2018-10-16 20:05:25 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pyyaml
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "kaptan";
|
2019-01-06 17:33:25 +01:00
|
|
|
version = "0.5.11";
|
2018-10-16 20:05:25 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-01-06 17:33:25 +01:00
|
|
|
sha256 = "8403d6e48200c3f49cb6d6b3dcb5898aa5ab9d820831655bf9a2403e00cd4207";
|
2018-10-16 20:05:25 +02:00
|
|
|
};
|
|
|
|
|
2019-04-10 10:33:04 +02:00
|
|
|
# https://github.com/emre/kaptan/pull/151
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements/base.txt \
|
|
|
|
--replace "PyYAML>=3.13,<4" "PyYAML>=3.13"
|
|
|
|
'';
|
|
|
|
|
2018-10-16 20:05:25 +02:00
|
|
|
propagatedBuildInputs = [ pyyaml ];
|
|
|
|
|
2019-01-06 17:33:25 +01:00
|
|
|
# No tests in archive
|
|
|
|
doCheck = false;
|
|
|
|
|
2018-10-16 20:05:25 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Configuration manager for python applications";
|
2019-01-06 17:33:25 +01:00
|
|
|
homepage = https://kaptan.readthedocs.io/;
|
2018-10-16 20:05:25 +02:00
|
|
|
license = licenses.bsd3;
|
2019-03-12 23:45:33 +01:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-16 20:05:25 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|