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