Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 30 lines 805 B view raw
1{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pytest-benchmark, wasmer }: 2 3buildPythonPackage rec { 4 pname = "fastdiff"; 5 version = "0.2.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "1ai95vjchl4396zjl1b69xfqvn9kn1y7c40d9l0qxdss0pcx6fk2"; 10 }; 11 12 postPatch = '' 13 substituteInPlace setup.py \ 14 --replace 'pytest-runner' "" 15 ''; 16 17 propagatedBuildInputs = [ wasmer ]; 18 19 checkInputs = [ pytestCheckHook pytest-benchmark ]; 20 21 pythonImportsCheck = [ "fastdiff" ]; 22 disabledTests = [ "test_native" ]; 23 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 }; 30}