depot/third_party/nixpkgs/pkgs/development/python-modules/datauri/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

44 lines
822 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pydantic
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "datauri";
version = "2.0.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "fcurella";
repo = "python-datauri";
rev = "refs/tags/v${version}";
hash = "sha256-k4tlWRasGa2oQykCD9QJl65UAoZQMJVdyCfqlUBBgqY=";
};
nativeBuildInputs = [
setuptools
];
pythonImportsCheck = [
"datauri"
];
nativeCheckInputs = [
pydantic
pytestCheckHook
];
disabledTests = [
"test_pydantic" # incompatible with pydantic v2
];
meta = with lib; {
description = "Data URI manipulation made easy.";
homepage = "https://github.com/fcurella/python-datauri";
license = licenses.unlicense;
maintainers = with maintainers; [ yuu ];
};
}