Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 29 lines 699 B view raw
1{ buildPythonPackage, lib, fetchFromGitHub 2, click, numpy, pyparsing 3, pytest 4}: 5 6buildPythonPackage rec { 7 pname = "snuggs"; 8 version = "1.4.3"; 9 10 # Pypi doesn't ship the tests, so we fetch directly from GitHub 11 src = fetchFromGitHub { 12 owner = "mapbox"; 13 repo = pname; 14 rev = version; 15 sha256 = "198nbgkhlg4ik2i1r2cp900iqlairh2hnii2y8v5wy1qk3rv0s9g"; 16 }; 17 18 propagatedBuildInputs = [ click numpy pyparsing ]; 19 20 checkInputs = [ pytest ]; 21 checkPhase = "pytest test_snuggs.py"; 22 23 meta = with lib; { 24 description = "S-expressions for Numpy"; 25 license = licenses.mit; 26 homepage = https://github.com/mapbox/snuggs; 27 maintainers = with maintainers; [ mredaelli ]; 28 }; 29}