about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/inflection
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/inflection')
-rw-r--r--nixpkgs/pkgs/development/python-modules/inflection/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/inflection/default.nix b/nixpkgs/pkgs/development/python-modules/inflection/default.nix
new file mode 100644
index 000000000000..6f439f0f69ac
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/inflection/default.nix
@@ -0,0 +1,24 @@
+{ lib, fetchPypi, buildPythonPackage, isPy27, pytest } :
+
+buildPythonPackage rec {
+  pname = "inflection";
+  version = "0.5.1";
+  disabled = isPy27;
+
+  src = fetchPypi {
+   inherit pname version;
+   sha256 = "1a29730d366e996aaacffb2f1f1cb9593dc38e2ddd30c91250c6dde09ea9b417";
+  };
+
+  checkInputs = [ pytest ];
+  # Suppress overly verbose output if tests run successfully
+  checkPhase = ''pytest >/dev/null || pytest'';
+
+  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;
+  };
+}
+