nixpkgs-suyu/pkgs/development/python-modules/kaptan/default.nix
2019-04-10 10:33:04 +02:00

34 lines
723 B
Nix

{ stdenv
, buildPythonPackage
, fetchPypi
, pyyaml
}:
buildPythonPackage rec {
pname = "kaptan";
version = "0.5.11";
src = fetchPypi {
inherit pname version;
sha256 = "8403d6e48200c3f49cb6d6b3dcb5898aa5ab9d820831655bf9a2403e00cd4207";
};
# https://github.com/emre/kaptan/pull/151
postPatch = ''
substituteInPlace requirements/base.txt \
--replace "PyYAML>=3.13,<4" "PyYAML>=3.13"
'';
propagatedBuildInputs = [ pyyaml ];
# No tests in archive
doCheck = false;
meta = with stdenv.lib; {
description = "Configuration manager for python applications";
homepage = https://kaptan.readthedocs.io/;
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}