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-09-25 04:45:31 +00:00
|
|
|
version = "0.5.1";
|
2020-06-15 15:56:04 +00:00
|
|
|
disabled = isPy27;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "1a29730d366e996aaacffb2f1f1cb9593dc38e2ddd30c91250c6dde09ea9b417";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
# Suppress overly verbose output if tests run successfully
|
2021-02-05 17:12:51 +00:00
|
|
|
checkPhase = "pytest >/dev/null || pytest";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|