2017-12-14 14:13:51 +00:00
|
|
|
{ lib, fetchPypi, buildPythonPackage, pytest } :
|
2017-11-27 19:31:14 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-12-14 14:13:51 +00:00
|
|
|
pname = "inflection";
|
|
|
|
version = "0.3.1";
|
2017-11-27 19:31:14 +00:00
|
|
|
|
2017-12-14 14:13:51 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1jhnxgnw8y3mbzjssixh6qkc7a3afc4fygajhqrqalnilyvpzshq";
|
|
|
|
};
|
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
|
|
|
|
checkPhase = ''pytest >/dev/null || pytest'';
|
2017-11-27 19:31:14 +00:00
|
|
|
|
2017-12-14 14:13:51 +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;
|
|
|
|
};
|
2017-11-27 19:31:14 +00:00
|
|
|
}
|
|
|
|
|