2022-07-18 16:21:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2023-11-16 04:20:00 +00:00
|
|
|
, setuptools
|
|
|
|
, pydantic
|
2022-07-18 16:21:45 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "datauri";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.0.0";
|
|
|
|
format = "pyproject";
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fcurella";
|
|
|
|
repo = "python-datauri";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-k4tlWRasGa2oQykCD9QJl65UAoZQMJVdyCfqlUBBgqY=";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2022-07-18 16:21:45 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"datauri"
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-11-16 04:20:00 +00:00
|
|
|
pydantic
|
2022-07-18 16:21:45 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_pydantic" # incompatible with pydantic v2
|
2022-07-18 16:21:45 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Data URI manipulation made easy.";
|
|
|
|
homepage = "https://github.com/fcurella/python-datauri";
|
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = with maintainers; [ yuu ];
|
|
|
|
};
|
|
|
|
}
|