mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 15:04:44 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
61 lines
986 B
Nix
61 lines
986 B
Nix
{ lib
|
|
, attrdict
|
|
, buildPythonPackage
|
|
, cairosvg
|
|
, fetchPypi
|
|
, pillow
|
|
, pytestCheckHook
|
|
, pyyaml
|
|
, setuptools-scm
|
|
, six
|
|
, svgwrite
|
|
, xmldiff
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "wavedrom";
|
|
version = "2.0.3.post3";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-MntNXcpZPIElfCAv6lFvepCHR/sRUnw1nwNPW3r39Hs=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
attrdict
|
|
pyyaml
|
|
svgwrite
|
|
six
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
cairosvg
|
|
pillow
|
|
pytestCheckHook
|
|
xmldiff
|
|
];
|
|
|
|
disabledTests = [
|
|
# Requires to clone a full git repository
|
|
"test_upstream"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"wavedrom"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "WaveDrom compatible Python command line";
|
|
homepage = "https://github.com/wallento/wavedrompy";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ airwoodix ];
|
|
};
|
|
}
|