at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch, 6 click, 7 numpy, 8 pyparsing, 9 pytestCheckHook, 10 hypothesis, 11}: 12 13buildPythonPackage rec { 14 pname = "snuggs"; 15 version = "1.4.7"; 16 format = "setuptools"; 17 18 # Pypi doesn't ship the tests, so we fetch directly from GitHub 19 src = fetchFromGitHub { 20 owner = "mapbox"; 21 repo = "snuggs"; 22 rev = version; 23 sha256 = "1p3lh9s2ylsnrzbs931y2vn7mp2y2xskgqmh767c9l1a33shfgwf"; 24 }; 25 26 patches = [ 27 # Use non-strict xfail for failing tests 28 # https://github.com/mapbox/snuggs/pull/28 29 (fetchpatch { 30 url = "https://github.com/sebastic/snuggs/commit/3b8e04a35ed33a7dd89f0194542b22c7bde867f4.patch"; 31 hash = "sha256-SfW4l4BH94rPdskRVHEsZM0twmlV9IPftRU/BBZsjBU="; 32 }) 33 ]; 34 35 propagatedBuildInputs = [ 36 click 37 numpy 38 pyparsing 39 ]; 40 41 nativeCheckInputs = [ 42 pytestCheckHook 43 hypothesis 44 ]; 45 46 meta = with lib; { 47 description = "S-expressions for Numpy"; 48 license = licenses.mit; 49 homepage = "https://github.com/mapbox/snuggs"; 50 maintainers = with maintainers; [ ]; 51 }; 52}