2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, attrdict
|
2022-01-19 23:45:15 +00:00
|
|
|
, buildPythonPackage
|
2021-09-18 10:52:07 +00:00
|
|
|
, cairosvg
|
2022-01-19 23:45:15 +00:00
|
|
|
, fetchPypi
|
2021-09-18 10:52:07 +00:00
|
|
|
, pillow
|
|
|
|
, pytestCheckHook
|
2022-08-12 12:06:08 +00:00
|
|
|
, pyyaml
|
2021-09-18 10:52:07 +00:00
|
|
|
, setuptools-scm
|
|
|
|
, six
|
|
|
|
, svgwrite
|
|
|
|
, xmldiff
|
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
];
|
|
|
|
|
2022-01-19 23:45:15 +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";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|