nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 38 lines 859 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, asynctest 5, pytest-asyncio 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "dynalite-devices"; 11 version = "0.46"; 12 13 src = fetchFromGitHub { 14 owner = "ziv1234"; 15 repo = "python-dynalite-devices"; 16 rev = "v${version}"; # https://github.com/ziv1234/python-dynalite-devices/issues/2 17 hash = "sha256-Fju2JpFkQBCbOln7r3L+crv82TI2SkdPJ1oaK7PEifo="; 18 }; 19 20 postPatch = '' 21 sed -i '/^addopts/d' setup.cfg 22 ''; 23 24 checkInputs = [ 25 asynctest 26 pytest-asyncio 27 pytestCheckHook 28 ]; 29 30 pythonImportsCheck = [ "dynalite_devices_lib" ]; 31 32 meta = with lib; { 33 description = "An unofficial Dynalite DyNET interface creating devices"; 34 homepage = "https://github.com/ziv1234/python-dynalite-devices"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ dotlambda ]; 37 }; 38}