depot/third_party/nixpkgs/pkgs/development/python-modules/inflection/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

25 lines
690 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 = "A port of Ruby on Rails inflector to Python";
maintainers = with lib.maintainers; [ NikolaMandic ilya-kolpakov ];
license = lib.licenses.mit;
};
}