nixpkgs/pkgs/development/python-modules/kaptan/default.nix
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

40 lines
804 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";
mainProgram = "kaptan";
homepage = "https://kaptan.readthedocs.io/";
license = licenses.bsd3;
maintainers = [ ];
};
}