1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 click,
7 pytestCheckHook,
8 pyyaml,
9 pytest-icdiff,
10 writableTmpDirAsHomeHook,
11}:
12
13buildPythonPackage rec {
14 pname = "symbex";
15 version = "2.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "simonw";
20 repo = "symbex";
21 tag = version;
22 hash = "sha256-swg98z4DpQJ5rq7tdsd3FofbYF7O5S+9ZR0weoM2DoI=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [ click ];
28
29 pythonImportsCheck = [ "symbex" ];
30
31 nativeCheckInputs = [
32 pytestCheckHook
33 pyyaml
34 pytest-icdiff
35 writableTmpDirAsHomeHook
36 ];
37
38 meta = {
39 description = "Find the Python code for specified symbols";
40 homepage = "https://github.com/simonw/symbex";
41 changelog = "https://github.com/simonw/symbex/releases/tag/${version}/CHANGELOG.md";
42 license = lib.licenses.asl20;
43 maintainers = with lib.maintainers; [ philiptaron ];
44 };
45}