Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pypck / default.nix
blobc4819b9a012a2bffe5e15d12060611feb9b8a1d8
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pytest-asyncio
6 , pytest-timeout
7 , pytestCheckHook
8 , pythonOlder
9 , setuptools
12 buildPythonPackage rec {
13   pname = "pypck";
14   version = "0.7.19";
15   format = "pyproject";
17   disabled = pythonOlder "3.9";
19   src = fetchFromGitHub {
20     owner = "alengwenus";
21     repo = pname;
22     rev = "refs/tags/${version}";
23     hash = "sha256-D4uUR8A1mrT+mxUswS34hSRczjRkRro/pz9NbMUCPjM=";
24   };
26   postPatch = ''
27     echo "${version}" > VERSION
28   '';
30   nativeBuildInputs = [
31     setuptools
32   ];
34   nativeCheckInputs = [
35     pytest-asyncio
36     pytest-timeout
37     pytestCheckHook
38   ];
40   pytestFlagsArray = [
41     "--asyncio-mode=auto"
42   ];
44   disabledTests = lib.optionals stdenv.isDarwin [
45     "test_connection_lost"
46   ];
48   __darwinAllowLocalNetworking = true;
50   pythonImportsCheck = [
51     "pypck"
52   ];
54   meta = with lib; {
55     description = "LCN-PCK library written in Python";
56     homepage = "https://github.com/alengwenus/pypck";
57     changelog = "https://github.com/alengwenus/pypck/releases/tag/${version}";
58     license = with licenses; [ epl20 ];
59     maintainers = with maintainers; [ fab ];
60   };