1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-04 14:52:34 +03:00
nixpkgs/pkgs/development/python-modules/pypck/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1 KiB
Nix
Raw Normal View History

2021-01-11 23:19:51 +01:00
{ lib
, stdenv
2021-01-11 23:19:51 +01:00
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-timeout
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pypck";
version = "0.7.16";
format = "setuptools";
2021-01-11 23:19:51 +01:00
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "alengwenus";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-OcXMVgG62JUH28BGvfO/rpnC++/klhBLJ2HafDu9R40=";
2021-01-11 23:19:51 +01:00
};
checkInputs = [
pytest-asyncio
pytest-timeout
pytestCheckHook
];
pytestFlagsArray = [
"--asyncio-mode=auto"
];
2021-01-11 23:19:51 +01:00
disabledTests = lib.optionals stdenv.isDarwin [
"test_connection_lost"
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [
"pypck"
];
2021-01-11 23:19:51 +01:00
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}";
2021-01-11 23:19:51 +01:00
license = with licenses; [ epl20 ];
maintainers = with maintainers; [ fab ];
};
}