2020-06-16 21:02:08 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, isPy27, pytest } :
|
2017-11-27 19:31:14 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-12-14 14:13:51 +00:00
|
|
|
pname = "inflection";
|
2020-08-29 11:41:49 +00:00
|
|
|
version = "0.5.1";
|
2020-06-16 21:02:08 +00:00
|
|
|
disabled = isPy27;
|
2017-11-27 19:31:14 +00:00
|
|
|
|
2017-12-14 14:13:51 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-29 11:41:49 +00:00
|
|
|
sha256 = "1a29730d366e996aaacffb2f1f1cb9593dc38e2ddd30c91250c6dde09ea9b417";
|
2017-12-14 14:13:51 +00:00
|
|
|
};
|
2017-11-27 19:31:14 +00:00
|
|
|
|
2017-12-14 14:13:51 +00:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
# Suppress overly verbose output if tests run successfully
|
2021-01-24 09:19:10 +00:00
|
|
|
checkPhase = "pytest >/dev/null || pytest";
|
2017-11-27 19:31:14 +00:00
|
|
|
|
2017-12-14 14:13:51 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/jpvanhal/inflection";
|
2017-12-14 14:13:51 +00: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 19:31:14 +00:00
|
|
|
}
|
|
|
|
|