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