blob: 9ddf94d5020aa60e21cca11a1a7617c358d0b62d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{
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
];
pytestFlagsArray = [ "--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 = with maintainers; [ ];
# resulting compiled object panics at import
broken = stdenv.is32bit;
};
}
|