1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 cons,
6 multipledispatch,
7 py,
8 pytestCheckHook,
9 pytest-html,
10 pythonOlder,
11}:
12
13buildPythonPackage rec {
14 pname = "etuples";
15 version = "0.3.9";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "pythological";
22 repo = "etuples";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-dl+exar98PnqEiCNX+Ydllp7aohsAYrFtxb2Q1Lxx6Y=";
25 };
26
27 propagatedBuildInputs = [
28 cons
29 multipledispatch
30 ];
31
32 nativeCheckInputs = [
33 py
34 pytestCheckHook
35 pytest-html
36 ];
37
38 pytestFlagsArray = [
39 "--html=testing-report.html"
40 "--self-contained-html"
41 ];
42
43 pythonImportsCheck = [ "etuples" ];
44
45 meta = with lib; {
46 description = "Python S-expression emulation using tuple-like objects";
47 homepage = "https://github.com/pythological/etuples";
48 changelog = "https://github.com/pythological/etuples/releases/tag/v${version}";
49 license = licenses.asl20;
50 maintainers = with maintainers; [ Etjean ];
51 };
52}