depot/third_party/nixpkgs/pkgs/development/python-modules/pypck/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

57 lines
1.1 KiB
Nix

{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-timeout
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "pypck";
version = "0.7.17";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "alengwenus";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-Vlt4+fRULb9mB0ceRmc7MJ50DnF9DAJPHA8iCbNVvcE=";
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
pytest-asyncio
pytest-timeout
pytestCheckHook
];
pytestFlagsArray = [
"--asyncio-mode=auto"
];
disabledTests = lib.optionals stdenv.isDarwin [
"test_connection_lost"
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [
"pypck"
];
meta = with lib; {
description = "LCN-PCK library written in Python";
homepage = "https://github.com/alengwenus/pypck";
changelog = "https://github.com/alengwenus/pypck/releases/tag/${version}";
license = with licenses; [ epl20 ];
maintainers = with maintainers; [ fab ];
};
}