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