nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 pytestCheckHook,
5 setuptools,
6 six,
7 poetry-core,
8 fetchFromGitLab,
9}:
10
11buildPythonPackage {
12 pname = "hcs-utils";
13 version = "2.1.0";
14 pyproject = true;
15
16 src = fetchFromGitLab {
17 owner = "hcs";
18 repo = "hcs_utils";
19 rev = "77668de42895dedb6b4baddf4207f331776de897"; # No tags for 2.1
20 hash = "sha256-T0a2lYi3umRZQInEsxnLf5p6+IxkUmGJhgW8l2ESDd0=";
21 };
22
23 build-system = [
24 setuptools
25 poetry-core
26 ];
27
28 dependencies = [
29 six
30 ];
31
32 disabledTests = [
33 "test_expand" # It depends on FHS
34 "test_blocking" # flaky, depends on comparing running time w/ magic value
35 ];
36
37 nativeCheckInputs = [ pytestCheckHook ];
38
39 meta = {
40 description = "Library collecting some useful snippets";
41 homepage = "https://gitlab.com/hcs/hcs_utils";
42 license = lib.licenses.isc;
43 maintainers = with lib.maintainers; [ lovek323 ];
44 };
45}