diff options
author | Massimo Redaelli <m.redaelli@gmail.com> | 2018-11-25 10:22:25 +0100 |
---|---|---|
committer | Massimo Redaelli <massimo.redaelli@celsiuspro.com> | 2018-11-26 14:58:36 +0100 |
commit | 443b5e856db2a46079512157632488a775303928 (patch) | |
tree | ff86e4a63ae43087de499b912a4e652e5a86bab2 /pkgs/development/python-modules/snuggs | |
parent | 440f19a36fee0e61061f7ab26e89e256efdbae6c (diff) | |
download | nixpkgs-443b5e856db2a46079512157632488a775303928.tar nixpkgs-443b5e856db2a46079512157632488a775303928.tar.gz nixpkgs-443b5e856db2a46079512157632488a775303928.tar.bz2 nixpkgs-443b5e856db2a46079512157632488a775303928.tar.lz nixpkgs-443b5e856db2a46079512157632488a775303928.tar.xz nixpkgs-443b5e856db2a46079512157632488a775303928.tar.zst nixpkgs-443b5e856db2a46079512157632488a775303928.zip |
pythonPackages.snuggs: init at 1.4.2
Diffstat (limited to 'pkgs/development/python-modules/snuggs')
-rw-r--r-- | pkgs/development/python-modules/snuggs/default.nix | 29 |
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 ]; + }; +} |