nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 47 lines 952 B view raw
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, aiohttp 6, siobrultech-protocols 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "greeneye-monitor"; 12 version = "3.0.3"; 13 14 disabled = pythonOlder "3.5"; 15 16 format = "setuptools"; 17 18 src = fetchFromGitHub { 19 owner = "jkeljo"; 20 repo = "greeneye-monitor"; 21 rev = "v${version}"; 22 hash = "sha256-weZTOVFBlB6TxFs8pLWfyB7WD/bn3ljBjX2tVi1Zc/I="; 23 }; 24 25 postPatch = '' 26 substituteInPlace setup.py \ 27 --replace "siobrultech_protocols==" "siobrultech_protocols>=" 28 ''; 29 30 propagatedBuildInputs = [ 31 aiohttp 32 siobrultech-protocols 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "greeneye.monitor" ]; 40 41 meta = { 42 description = "Receive data packets from GreenEye Monitor"; 43 homepage = "https://github.com/jkeljo/greeneye-monitor"; 44 license = lib.licenses.mit; 45 maintainers = with lib.maintainers; [ dotlambda ]; 46 }; 47}