tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
python310Packages.tinycss2: 1.1.0 -> 1.1.1
Jonas Heinrich
3 years ago
28fa56d1
2364de14
+13
-10
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
tinycss2
default.nix
+13
-10
pkgs/development/python-modules/tinycss2/default.nix
···
4
, fetchFromGitHub
5
, webencodings
6
, pytestCheckHook
0
7
}:
8
9
buildPythonPackage rec {
10
pname = "tinycss2";
11
-
version = "1.1.0";
12
-
disabled = pythonOlder "3.5";
13
format = "flit";
0
0
14
15
src = fetchFromGitHub {
16
owner = "kozea";
···
18
rev = "v${version}";
19
# for tests
20
fetchSubmodules = true;
21
-
sha256 = "sha256-WA88EYolL76WqeA1UKR3Sfw11j8NuOGOxPezujYizH8=";
22
};
23
24
-
propagatedBuildInputs = [ webencodings ];
25
-
26
-
checkInputs = [
27
-
pytestCheckHook
28
-
];
29
-
30
postPatch = ''
31
substituteInPlace pyproject.toml \
32
--replace "'pytest-cov', 'pytest-flake8', 'pytest-isort', 'coverage[toml]'" "" \
33
-
--replace "--isort --flake8 --cov" ""
34
'';
35
0
0
0
0
0
0
36
meta = with lib; {
37
description = "Low-level CSS parser for Python";
38
homepage = "https://github.com/Kozea/tinycss2";
39
license = licenses.bsd3;
0
40
};
41
}
···
4
, fetchFromGitHub
5
, webencodings
6
, pytestCheckHook
7
+
, flit-core
8
}:
9
10
buildPythonPackage rec {
11
pname = "tinycss2";
12
+
version = "1.1.1";
0
13
format = "flit";
14
+
15
+
disabled = pythonOlder "3.6";
16
17
src = fetchFromGitHub {
18
owner = "kozea";
···
20
rev = "v${version}";
21
# for tests
22
fetchSubmodules = true;
23
+
sha256 = "sha256-RUF/3cjNgDFofoxl9iKY3u5ZAVVQmXu2Qbb5U4brdcQ=";
24
};
25
0
0
0
0
0
0
26
postPatch = ''
27
substituteInPlace pyproject.toml \
28
--replace "'pytest-cov', 'pytest-flake8', 'pytest-isort', 'coverage[toml]'" "" \
29
+
--replace "--isort --flake8 --cov --no-cov-on-fail" ""
30
'';
31
32
+
nativeBuildInputs = [ flit-core ];
33
+
34
+
propagatedBuildInputs = [ webencodings ];
35
+
36
+
checkInputs = [ pytestCheckHook ];
37
+
38
meta = with lib; {
39
description = "Low-level CSS parser for Python";
40
homepage = "https://github.com/Kozea/tinycss2";
41
license = licenses.bsd3;
42
+
maintainers = with maintainers; [ onny ];
43
};
44
}