2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchPypi,
|
|
|
|
buildPythonPackage,
|
|
|
|
isPy27,
|
|
|
|
pytest,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "inflection";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "0.5.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-06-15 15:56:04 +00:00
|
|
|
disabled = isPy27;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-06-05 15:53:02 +00:00
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1a29730d366e996aaacffb2f1f1cb9593dc38e2ddd30c91250c6dde09ea9b417";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
# Suppress overly verbose output if tests run successfully
|
2021-02-05 17:12:51 +00:00
|
|
|
checkPhase = "pytest >/dev/null || pytest";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://github.com/jpvanhal/inflection";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Port of Ruby on Rails inflector to Python";
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
NikolaMandic
|
|
|
|
ilya-kolpakov
|
|
|
|
];
|
|
|
|
license = lib.licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|