Files
nixpkgs/pkgs/development/python-modules/kaptan/default.nix
T
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

46 lines
833 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 = with maintainers; [ ];
};
}