nixpkgs/pkgs/development/python-modules/inflect/default.nix
Sandro Jäckel 2016ebd1fd python3Packages: provide setuptools-scm with toml[i] by default and remove duplicated toml packages
Some packages seem to still require toml despite setuptools-scm having switched to tomli.
If it is missing the version number in dist.into is set to 0.0.0 and silently all version pins break.
2021-09-01 21:23:19 +02:00

33 lines
752 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, setuptools-scm
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "inflect";
version = "5.3.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "41a23f6788962e9775e40e2ecfb1d6455d02de315022afeedd3c5dc070019d73";
};
nativeBuildInputs = [ setuptools-scm ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "inflect" ];
meta = with lib; {
description = "Correctly generate plurals, singular nouns, ordinals, indefinite articles";
homepage = "https://github.com/jaraco/inflect";
changelog = "https://github.com/jaraco/inflect/blob/v${version}/CHANGES.rst";
license = licenses.mit;
maintainers = teams.tts.members;
};
}