1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7}:
8
9buildPythonPackage rec {
10 pname = "linetable";
11 version = "0.0.3";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.10";
15
16 src = fetchFromGitHub {
17 owner = "amol-";
18 repo = "linetable";
19 tag = version;
20 hash = "sha256-nVZVxK6uB5TP0pReaEya3/lFXFkiqpnnaWqYzxzO6bM=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "linetable" ];
26
27 meta = with lib; {
28 description = "Library to parse and generate co_linetable attributes in Python code objects";
29 homepage = "https://github.com/amol-/linetable";
30 changelog = "https://github.com/amol-/linetable/releases/tag/${version}";
31 license = licenses.mit;
32 maintainers = with maintainers; [ fab ];
33 };
34}