2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
attrdict,
|
|
|
|
buildPythonPackage,
|
|
|
|
cairosvg,
|
|
|
|
fetchPypi,
|
|
|
|
pillow,
|
|
|
|
pytestCheckHook,
|
|
|
|
pyyaml,
|
|
|
|
setuptools-scm,
|
|
|
|
six,
|
|
|
|
svgwrite,
|
|
|
|
xmldiff,
|
2021-09-18 10:52:07 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wavedrom";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "2.0.3.post3";
|
2022-01-19 23:45:15 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-MntNXcpZPIElfCAv6lFvepCHR/sRUnw1nwNPW3r39Hs=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrdict
|
2022-08-12 12:06:08 +00:00
|
|
|
pyyaml
|
2021-09-18 10:52:07 +00:00
|
|
|
svgwrite
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-01-19 23:45:15 +00:00
|
|
|
cairosvg
|
|
|
|
pillow
|
2021-09-18 10:52:07 +00:00
|
|
|
pytestCheckHook
|
|
|
|
xmldiff
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
2022-01-19 23:45:15 +00:00
|
|
|
# Requires to clone a full git repository
|
|
|
|
"test_upstream"
|
2021-09-18 10:52:07 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "wavedrom" ];
|
2021-09-18 10:52:07 +00:00
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
meta = with lib; {
|
2021-09-18 10:52:07 +00:00
|
|
|
description = "WaveDrom compatible Python command line";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "wavedrompy";
|
2021-09-18 10:52:07 +00:00
|
|
|
homepage = "https://github.com/wallento/wavedrompy";
|
2022-01-19 23:45:15 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ airwoodix ];
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
}
|