tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.datauri: 1.1.0 -> 2.0.0
Martin Weinelt
2 years ago
a079000a
e75adaa1
+13
-6
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
datauri
default.nix
+13
-6
pkgs/development/python-modules/datauri/default.nix
···
1
{ lib
2
, buildPythonPackage
3
, fetchFromGitHub
0
0
4
, pytestCheckHook
5
}:
6
7
buildPythonPackage rec {
8
pname = "datauri";
9
-
version = "1.1.0";
0
10
11
src = fetchFromGitHub {
12
owner = "fcurella";
13
repo = "python-datauri";
14
-
rev = "v${version}";
15
-
hash = "sha256-Eevd/xxKgxvvsAfI/L/KShH+PfxffBGyVwKewLgyEu0=";
16
};
17
0
0
0
0
18
pythonImportsCheck = [
19
"datauri"
20
];
21
22
nativeCheckInputs = [
0
23
pytestCheckHook
24
];
25
26
-
disabledTestPaths = [
27
-
# UnicodeDecodeError: 'utf-8' codec can't decode
28
-
"tests/test_file_ebcdic.txt"
29
];
30
31
meta = with lib; {
···
1
{ lib
2
, buildPythonPackage
3
, fetchFromGitHub
4
+
, setuptools
5
+
, pydantic
6
, pytestCheckHook
7
}:
8
9
buildPythonPackage rec {
10
pname = "datauri";
11
+
version = "2.0.0";
12
+
format = "pyproject";
13
14
src = fetchFromGitHub {
15
owner = "fcurella";
16
repo = "python-datauri";
17
+
rev = "refs/tags/v${version}";
18
+
hash = "sha256-k4tlWRasGa2oQykCD9QJl65UAoZQMJVdyCfqlUBBgqY=";
19
};
20
21
+
nativeBuildInputs = [
22
+
setuptools
23
+
];
24
+
25
pythonImportsCheck = [
26
"datauri"
27
];
28
29
nativeCheckInputs = [
30
+
pydantic
31
pytestCheckHook
32
];
33
34
+
disabledTests = [
35
+
"test_pydantic" # incompatible with pydantic v2
0
36
];
37
38
meta = with lib; {