2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cons
|
|
|
|
, multipledispatch
|
2023-01-20 10:41:00 +00:00
|
|
|
, py
|
2022-03-05 16:20:37 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-html
|
2023-07-15 17:15:38 +00:00
|
|
|
, pythonOlder
|
2022-03-05 16:20:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "etuples";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.3.9";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pythological";
|
|
|
|
repo = "etuples";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-dl+exar98PnqEiCNX+Ydllp7aohsAYrFtxb2Q1Lxx6Y=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cons
|
|
|
|
multipledispatch
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
py
|
2022-03-05 16:20:37 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-html
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"--html=testing-report.html"
|
|
|
|
"--self-contained-html"
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"etuples"
|
|
|
|
];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python S-expression emulation using tuple-like objects";
|
|
|
|
homepage = "https://github.com/pythological/etuples";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/pythological/etuples/releases/tag/v${version}";
|
2022-03-05 16:20:37 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ Etjean ];
|
|
|
|
};
|
|
|
|
}
|