1{ lib, fetchPypi, buildPythonPackage, isPy27, pytest } :
2
3buildPythonPackage rec {
4 pname = "inflection";
5 version = "0.5.1";
6 disabled = isPy27;
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "1a29730d366e996aaacffb2f1f1cb9593dc38e2ddd30c91250c6dde09ea9b417";
11 };
12
13 nativeCheckInputs = [ pytest ];
14 # Suppress overly verbose output if tests run successfully
15 checkPhase = "pytest >/dev/null || pytest";
16
17 meta = {
18 homepage = "https://github.com/jpvanhal/inflection";
19 description = "A port of Ruby on Rails inflector to Python";
20 maintainers = with lib.maintainers; [ NikolaMandic ilya-kolpakov ];
21 license = lib.licenses.mit;
22 };
23}
24