biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / pypck / default.nix
bloba24b786a30c3266b15cf82c2f8b37e0db5e2a943
2   lib,
3   stdenv,
4   buildPythonPackage,
5   fetchFromGitHub,
6   pytest-asyncio,
7   pytest-timeout,
8   pytestCheckHook,
9   pythonOlder,
10   setuptools,
13 buildPythonPackage rec {
14   pname = "pypck";
15   version = "0.7.24";
16   pyproject = true;
18   disabled = pythonOlder "3.9";
20   src = fetchFromGitHub {
21     owner = "alengwenus";
22     repo = "pypck";
23     rev = "refs/tags/${version}";
24     hash = "sha256-DWdQUnURL3WBi916vOTawtBqq+SHTu4iLViGczwAWQE=";
25   };
27   postPatch = ''
28     echo "${version}" > VERSION
29   '';
31   build-system = [ setuptools ];
33   nativeCheckInputs = [
34     pytest-asyncio
35     pytest-timeout
36     pytestCheckHook
37   ];
39   pytestFlagsArray = [ "--asyncio-mode=auto" ];
41   disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_connection_lost" ];
43   __darwinAllowLocalNetworking = true;
45   pythonImportsCheck = [ "pypck" ];
47   meta = with lib; {
48     description = "LCN-PCK library written in Python";
49     homepage = "https://github.com/alengwenus/pypck";
50     changelog = "https://github.com/alengwenus/pypck/releases/tag/${version}";
51     license = with licenses; [ epl20 ];
52     maintainers = with maintainers; [ fab ];
53   };