2020-06-15 15:56:04 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, isPy27, pytest } :
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "inflection";
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "0.4.0";
|
|
|
|
disabled = isPy27;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "32a5c3341d9583ec319548b9015b7fbdf8c429cbcb575d326c33ae3a0e90d52c";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|