nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 47 lines 1.0 kB view raw
1{ 2 lib, 3 aiohttp, 4 async-timeout, 5 buildPythonPackage, 6 fetchFromGitHub, 7 pytest-aiohttp, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "moonraker-api"; 13 version = "2.0.6"; 14 format = "setuptools"; 15 16 src = fetchFromGitHub { 17 owner = "cmroche"; 18 repo = "moonraker-api"; 19 tag = "v${version}"; 20 hash = "sha256-AwSHF9BbxKBXIQdG4OX1vYYP/ST4jSz3uMMDUx0MSEg="; 21 }; 22 23 postPatch = '' 24 # see comment on https://github.com/cmroche/moonraker-api/commit/e5ca8ab60d2839e150a81182fbe65255d84b4e4e 25 substituteInPlace setup.py \ 26 --replace 'name="moonraker-api",' 'name="moonraker-api",version="${version}",' 27 ''; 28 29 propagatedBuildInputs = [ 30 aiohttp 31 async-timeout 32 ]; 33 34 nativeCheckInputs = [ 35 pytest-aiohttp 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "moonraker_api" ]; 40 41 meta = { 42 description = "Python API for the Moonraker API"; 43 homepage = "https://github.com/cmroche/moonraker-api"; 44 license = with lib.licenses; [ gpl3Only ]; 45 maintainers = with lib.maintainers; [ fab ]; 46 }; 47}