depot/third_party/nixpkgs/pkgs/development/python-modules/inflection/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

33 lines
719 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
isPy27,
pytest,
}:
buildPythonPackage rec {
pname = "inflection";
version = "0.5.1";
format = "setuptools";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1a29730d366e996aaacffb2f1f1cb9593dc38e2ddd30c91250c6dde09ea9b417";
};
nativeCheckInputs = [ pytest ];
# Suppress overly verbose output if tests run successfully
checkPhase = "pytest >/dev/null || pytest";
meta = {
homepage = "https://github.com/jpvanhal/inflection";
description = "Port of Ruby on Rails inflector to Python";
maintainers = with lib.maintainers; [
NikolaMandic
ilya-kolpakov
];
license = lib.licenses.mit;
};
}