2017-12-14 06:13:51 -08:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, pytest } :
|
2017-11-27 11:31:14 -08:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-12-14 06:13:51 -08:00
|
|
|
pname = "inflection";
|
2020-06-05 23:47:13 -07:00
|
|
|
version = "0.4.0";
|
2017-11-27 11:31:14 -08:00
|
|
|
|
2017-12-14 06:13:51 -08:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-05 23:47:13 -07:00
|
|
|
sha256 = "32a5c3341d9583ec319548b9015b7fbdf8c429cbcb575d326c33ae3a0e90d52c";
|
2017-12-14 06:13:51 -08:00
|
|
|
};
|
2017-11-27 11:31:14 -08:00
|
|
|
|
2017-12-14 06:13:51 -08:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
# Suppress overly verbose output if tests run successfully
|
|
|
|
checkPhase = ''pytest >/dev/null || pytest'';
|
2017-11-27 11:31:14 -08:00
|
|
|
|
2017-12-14 06:13:51 -08:00
|
|
|
meta = {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/jpvanhal/inflection";
|
2017-12-14 06:13:51 -08:00
|
|
|
description = "A port of Ruby on Rails inflector to Python";
|
|
|
|
maintainers = with lib.maintainers; [ NikolaMandic ilya-kolpakov ];
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
};
|
2017-11-27 11:31:14 -08:00
|
|
|
}
|
|
|
|
|