aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/snuggs
diff options
context:
space:
mode:
authorMassimo Redaelli <m.redaelli@gmail.com>2018-11-25 10:22:25 +0100
committerMassimo Redaelli <massimo.redaelli@celsiuspro.com>2018-11-26 14:58:36 +0100
commit443b5e856db2a46079512157632488a775303928 (patch)
treeff86e4a63ae43087de499b912a4e652e5a86bab2 /pkgs/development/python-modules/snuggs
parent440f19a36fee0e61061f7ab26e89e256efdbae6c (diff)
pythonPackages.snuggs: init at 1.4.2
Diffstat (limited to 'pkgs/development/python-modules/snuggs')
-rw-r--r--pkgs/development/python-modules/snuggs/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/snuggs/default.nix b/pkgs/development/python-modules/snuggs/default.nix
new file mode 100644
index 00000000000..3e0ffe4110d
--- /dev/null
+++ b/pkgs/development/python-modules/snuggs/default.nix
@@ -0,0 +1,29 @@
+{ buildPythonPackage, lib, fetchFromGitHub
+, click, numpy, pyparsing
+, pytest
+}:
+
+buildPythonPackage rec {
+ pname = "snuggs";
+ version = "1.4.2";
+
+ # Pypi doesn't ship the tests, so we fetch directly from GitHub
+ src = fetchFromGitHub {
+ owner = "mapbox";
+ repo = pname;
+ rev = version;
+ sha256 = "1q6jqwai4qgghdjgwhyx3yz8mlrm7p1vvnwc339lfl028hrgb5kb";
+ };
+
+ propagatedBuildInputs = [ click numpy pyparsing ];
+
+ checkInputs = [ pytest ];
+ checkPhase = "pytest test_snuggs.py";
+
+ meta = with lib; {
+ description = "S-expressions for Numpy";
+ license = licenses.mit;
+ homepage = https://github.com/mapbox/snuggs;
+ maintainers = with maintainers; [ mredaelli ];
+ };
+}