Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 730 B view raw
1{ buildPythonPackage, lib, fetchFromGitHub 2, click, numpy, pyparsing 3, pytest, hypothesis 4}: 5 6buildPythonPackage rec { 7 pname = "snuggs"; 8 version = "1.4.7"; 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 = "1p3lh9s2ylsnrzbs931y2vn7mp2y2xskgqmh767c9l1a33shfgwf"; 16 }; 17 18 propagatedBuildInputs = [ click numpy pyparsing ]; 19 20 nativeCheckInputs = [ pytest hypothesis ]; 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}