Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / fastdiff / default.nix
blobb3e27d7a5e81d496fd135eaeb8ba23b4c131d111
1 { lib, buildPythonPackage, fetchPypi, pytestCheckHook, pytest-benchmark, wasmer }:
3 buildPythonPackage rec {
4   pname = "fastdiff";
5   version = "0.2.0";
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "1ai95vjchl4396zjl1b69xfqvn9kn1y7c40d9l0qxdss0pcx6fk2";
10   };
12   postPatch = ''
13     substituteInPlace setup.py \
14       --replace 'pytest-runner' ""
15   '';
17   propagatedBuildInputs = [ wasmer ];
19   checkInputs = [ pytestCheckHook pytest-benchmark ];
21   pythonImportsCheck = [ "fastdiff" ];
22   disabledTests = [ "test_native" ];
24   meta = with lib; {
25     description = "A fast native implementation of diff algorithm with a pure Python fallback";
26     homepage = "https://github.com/syrusakbary/fastdiff";
27     license = licenses.mit;
28     maintainers = with maintainers; [ SuperSandro2000 ];
29   };