Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / datauri / default.nix
blobd5ed9bf0525e9008cd81c7ab1f5aea2dbbd05d89
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , pydantic
6 , pytestCheckHook
7 }:
9 buildPythonPackage rec {
10   pname = "datauri";
11   version = "2.0.0";
12   format = "pyproject";
14   src = fetchFromGitHub {
15     owner = "fcurella";
16     repo = "python-datauri";
17     rev = "refs/tags/v${version}";
18     hash = "sha256-k4tlWRasGa2oQykCD9QJl65UAoZQMJVdyCfqlUBBgqY=";
19   };
21   nativeBuildInputs = [
22     setuptools
23   ];
25   pythonImportsCheck = [
26     "datauri"
27   ];
29   nativeCheckInputs = [
30     pydantic
31     pytestCheckHook
32   ];
34   disabledTests = [
35     "test_pydantic" # incompatible with pydantic v2
36   ];
38   meta = with lib; {
39     description = "Data URI manipulation made easy.";
40     homepage = "https://github.com/fcurella/python-datauri";
41     license = licenses.unlicense;
42     maintainers = with maintainers; [ yuu ];
43   };