2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 18:05:25 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pyyaml
|
2019-04-23 08:37:44 +00:00
|
|
|
, pytest
|
2018-10-16 18:05:25 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "kaptan";
|
2019-04-23 08:37:44 +00:00
|
|
|
version = "0.5.12";
|
2018-10-16 18:05:25 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-23 08:37:44 +00:00
|
|
|
sha256 = "1abd1f56731422fce5af1acc28801677a51e56f5d3c3e8636db761ed143c3dd2";
|
2018-10-16 18:05:25 +00:00
|
|
|
};
|
|
|
|
|
2019-04-10 08:33:04 +00:00
|
|
|
postPatch = ''
|
2019-04-23 08:37:44 +00:00
|
|
|
sed -i "s/==.*//g" requirements/test.txt
|
2019-04-10 08:33:04 +00:00
|
|
|
'';
|
|
|
|
|
2018-10-16 18:05:25 +00:00
|
|
|
propagatedBuildInputs = [ pyyaml ];
|
|
|
|
|
2019-04-23 08:37:44 +00:00
|
|
|
checkInputs = [ pytest ];
|
2019-01-06 16:33:25 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-16 18:05:25 +00:00
|
|
|
description = "Configuration manager for python applications";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://kaptan.readthedocs.io/";
|
2018-10-16 18:05:25 +00:00
|
|
|
license = licenses.bsd3;
|
2019-03-12 22:45:33 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2018-10-16 18:05:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|