blob: efb20406e642b2126578532beebd6cb731adb95c (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
click,
pytestCheckHook,
pyyaml,
pytest-icdiff,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
pname = "symbex";
version = "2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "simonw";
repo = "symbex";
tag = version;
hash = "sha256-swg98z4DpQJ5rq7tdsd3FofbYF7O5S+9ZR0weoM2DoI=";
};
build-system = [ setuptools ];
dependencies = [ click ];
pythonImportsCheck = [ "symbex" ];
nativeCheckInputs = [
pytestCheckHook
pyyaml
pytest-icdiff
writableTmpDirAsHomeHook
];
disabledTests = [
# Fails with `TypeError: CliRunner.__init__() got an unexpected keyword argument 'mix_std...`
# https://github.com/simonw/symbex/issues/48
"test_errors"
# Fails with AssertionError (SystemExit(1).stdout is '' not the expected message)
"test_output"
];
meta = {
description = "Find the Python code for specified symbols";
homepage = "https://github.com/simonw/symbex";
changelog = "https://github.com/simonw/symbex/releases/tag/${version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ philiptaron ];
};
}
|