nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools-scm,
6 more-itertools,
7 cssselect,
8 jaraco-test,
9 lxml,
10 mock,
11 pytestCheckHook,
12}:
13
14buildPythonPackage rec {
15 pname = "cssutils";
16 version = "2.11.1";
17 pyproject = true;
18
19 src = fetchFromGitHub {
20 owner = "jaraco";
21 repo = "cssutils";
22 tag = "v${version}";
23 hash = "sha256-U9myMfKz1HpYVJXp85izRBpm2wjLHYZj8bUVt3ROTEg=";
24 };
25
26 build-system = [ setuptools-scm ];
27
28 dependencies = [ more-itertools ];
29
30 nativeCheckInputs = [
31 cssselect
32 jaraco-test
33 lxml
34 mock
35 pytestCheckHook
36 ];
37
38 disabledTests = [
39 # access network
40 "encutils"
41 "website.logging"
42 ];
43
44 pythonImportsCheck = [ "cssutils" ];
45
46 meta = {
47 description = "CSS Cascading Style Sheets library for Python";
48 homepage = "https://github.com/jaraco/cssutils";
49 changelog = "https://github.com/jaraco/cssutils/blob/${src.rev}/NEWS.rst";
50 license = lib.licenses.lgpl3Plus;
51 maintainers = with lib.maintainers; [ dotlambda ];
52 };
53}