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