Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 53 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354{ stdenv, lib, buildPythonPackage, fetchPypi, wasmer, wasmer-compiler-cranelift, py, pytestCheckHook, pytest-benchmark,}:
buildPythonPackage rec { pname = "fastdiff"; version = "0.3.0"; format = "setuptools";
src = fetchPypi { inherit pname version; sha256 = "4dfa09c47832a8c040acda3f1f55fc0ab4d666f0e14e6951e6da78d59acd945a"; };
postPatch = '' substituteInPlace setup.py \ --replace 'pytest-runner' "" substituteInPlace setup.cfg \ --replace "collect_ignore = ['setup.py']" "" '';
propagatedBuildInputs = [ wasmer wasmer-compiler-cranelift ];
nativeCheckInputs = [ py pytestCheckHook pytest-benchmark ];
pytestFlags = [ "--benchmark-skip" ];
pythonImportsCheck = [ "fastdiff" ];
meta = with lib; { description = "Fast native implementation of diff algorithm with a pure Python fallback"; homepage = "https://github.com/syrusakbary/fastdiff"; license = licenses.mit; maintainers = [ ]; # resulting compiled object panics at import broken = stdenv.hostPlatform.is32bit; };}