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
|
|
|
|
, setuptools-scm
|
|
|
|
, six
|
|
|
|
, svgwrite
|
|
|
|
, xmldiff
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wavedrom";
|
|
|
|
version = "2.0.3.post2";
|
2022-01-19 23:45:15 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-19 23:45:15 +00:00
|
|
|
hash = "sha256-I5s0Nf8RawkAfVUX7tdV/IWRiRtycaHNQNueQAwCRI0=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrdict
|
|
|
|
svgwrite
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
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
|
|
|
};
|
|
|
|
}
|