writers: add writeGuile[Bin] (#364531)
[NixPkgs.git] / pkgs / development / python-modules / snuggs / default.nix
blobb742c8d6985adc0c5782d509eb85b19b3a9accb1
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   fetchpatch,
6   click,
7   numpy,
8   pyparsing,
9   pytestCheckHook,
10   hypothesis,
13 buildPythonPackage rec {
14   pname = "snuggs";
15   version = "1.4.7";
16   format = "setuptools";
18   # Pypi doesn't ship the tests, so we fetch directly from GitHub
19   src = fetchFromGitHub {
20     owner = "mapbox";
21     repo = pname;
22     rev = version;
23     sha256 = "1p3lh9s2ylsnrzbs931y2vn7mp2y2xskgqmh767c9l1a33shfgwf";
24   };
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   ];
35   propagatedBuildInputs = [
36     click
37     numpy
38     pyparsing
39   ];
41   nativeCheckInputs = [
42     pytestCheckHook
43     hypothesis
44   ];
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   };