depot/third_party/nixpkgs/pkgs/development/python-modules/kaptan/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

44 lines
805 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pyyaml
, pytestCheckHook
, setuptools
}:
buildPythonPackage rec {
pname = "kaptan";
version = "0.6.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-EBMwpE/e3oiFhvMBC9FFwOxIpIBrxWQp+lSHpndAIfg=";
};
postPatch = ''
sed -i "s/==.*//g" requirements/test.txt
substituteInPlace requirements/base.txt --replace 'PyYAML>=3.13,<6' 'PyYAML>=3.13'
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
pyyaml
];
nativeCheckInputs = [
pytestCheckHook
];
meta = with lib; {
description = "Configuration manager for python applications";
homepage = "https://kaptan.readthedocs.io/";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}