nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pydantic,
6 pytestCheckHook,
7 setuptools,
8 typing-extensions,
9 cached-property,
10}:
11
12buildPythonPackage rec {
13 pname = "datauri";
14 version = "3.0.2";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "fcurella";
19 repo = "python-datauri";
20 tag = "v${version}";
21 hash = "sha256-WrOQPUZ9vaLSR0hxIvCK8kBnARiOLh6qqWBw/h6XpaY=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 typing-extensions
28 cached-property
29 ];
30
31 nativeCheckInputs = [
32 pydantic
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [ "datauri" ];
37
38 meta = {
39 description = "Module for Data URI manipulation";
40 homepage = "https://github.com/fcurella/python-datauri";
41 changelog = "https://github.com/fcurella/python-datauri/releases/tag/${src.tag}";
42 license = lib.licenses.unlicense;
43 maintainers = [ ];
44 };
45}