diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/snuggs/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/snuggs/default.nix | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/snuggs/default.nix b/nixpkgs/pkgs/development/python-modules/snuggs/default.nix index 17b2c4bd8f3c..8824645973ed 100644 --- a/nixpkgs/pkgs/development/python-modules/snuggs/default.nix +++ b/nixpkgs/pkgs/development/python-modules/snuggs/default.nix @@ -1,6 +1,12 @@ -{ buildPythonPackage, lib, fetchFromGitHub -, click, numpy, pyparsing -, pytest, hypothesis +{ lib +, buildPythonPackage +, fetchFromGitHub +, fetchpatch +, click +, numpy +, pyparsing +, pytestCheckHook +, hypothesis }: buildPythonPackage rec { @@ -16,10 +22,18 @@ buildPythonPackage rec { sha256 = "1p3lh9s2ylsnrzbs931y2vn7mp2y2xskgqmh767c9l1a33shfgwf"; }; + patches = [ + # Use non-strict xfail for failing tests + # https://github.com/mapbox/snuggs/pull/28 + (fetchpatch { + url = "https://github.com/sebastic/snuggs/commit/3b8e04a35ed33a7dd89f0194542b22c7bde867f4.patch"; + hash = "sha256-SfW4l4BH94rPdskRVHEsZM0twmlV9IPftRU/BBZsjBU="; + }) + ]; + propagatedBuildInputs = [ click numpy pyparsing ]; - nativeCheckInputs = [ pytest hypothesis ]; - checkPhase = "pytest test_snuggs.py"; + nativeCheckInputs = [ pytestCheckHook hypothesis ]; meta = with lib; { description = "S-expressions for Numpy"; |