depot/third_party/nixpkgs/pkgs/development/python-modules/inflection/default.nix
Default email 2ce89355c3 Project import generated by Copybara.
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
2020-06-15 17:56:04 +02:00

24 lines
661 B
Nix

{ lib, fetchPypi, buildPythonPackage, isPy27, pytest } :
buildPythonPackage rec {
pname = "inflection";
version = "0.4.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "32a5c3341d9583ec319548b9015b7fbdf8c429cbcb575d326c33ae3a0e90d52c";
};
checkInputs = [ 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;
};
}