depot/third_party/nixpkgs/pkgs/development/python-modules/pypck/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

54 lines
1.1 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytest-timeout,
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "pypck";
version = "0.7.24";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "alengwenus";
repo = "pypck";
rev = "refs/tags/${version}";
hash = "sha256-DWdQUnURL3WBi916vOTawtBqq+SHTu4iLViGczwAWQE=";
};
postPatch = ''
echo "${version}" > VERSION
'';
build-system = [ setuptools ];
nativeCheckInputs = [
pytest-asyncio
pytest-timeout
pytestCheckHook
];
pytestFlagsArray = [ "--asyncio-mode=auto" ];
disabledTests = lib.optionals stdenv.hostPlatform.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 ];
};
}