mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 00:53:12 +03:00
python3Packages.pyzerproc: init at 0.4.6
This commit is contained in:
parent
04e9e9e510
commit
b240c43e42
53
pkgs/development/python-modules/pyzerproc/default.nix
Normal file
53
pkgs/development/python-modules/pyzerproc/default.nix
Normal file
@ -0,0 +1,53 @@
|
||||
{ lib
|
||||
, asynctest
|
||||
, bleak
|
||||
, click
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytest-asyncio
|
||||
, pytest-cov
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyzerproc";
|
||||
version = "0.4.6";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "emlove";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1qlxvvy9fyff56dvc46nsd5ngkxqhdi7s4gwfndj7dn76j81srpq";
|
||||
};
|
||||
|
||||
# Remove pytest-runner, https://github.com/emlove/pyzerproc/pull/1
|
||||
patchPhase = ''
|
||||
substituteInPlace setup.py --replace "'pytest-runner'," ""
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
bleak
|
||||
click
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
asynctest
|
||||
pytest-asyncio
|
||||
pytest-cov
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyzerproc" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library to control Zerproc Bluetooth LED smart string lights";
|
||||
homepage = "https://github.com/emlove/pyzerproc";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -6598,6 +6598,8 @@ in {
|
||||
|
||||
pyyaml = callPackage ../development/python-modules/pyyaml { };
|
||||
|
||||
pyzerproc = callPackage ../development/python-modules/pyzerproc { };
|
||||
|
||||
pyzmq = callPackage ../development/python-modules/pyzmq { };
|
||||
|
||||
pyzufall = callPackage ../development/python-modules/pyzufall { };
|
||||
|
Loading…
Reference in New Issue
Block a user