nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 41 lines 861 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 requests, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "nanoleaf"; 11 version = "0.4.1"; 12 pyproject = true; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-GmnwW/IleBlvsGj1YwSPZrOho9uVlWeNzpZX6VbstZ0="; 17 }; 18 19 prePatch = '' 20 sed -i '/^gitVersion =/d' setup.py 21 substituteInPlace setup.py \ 22 --replace-fail 'gitVersion' '"${version}"' 23 ''; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ requests ]; 28 29 # Module has no test 30 doCheck = false; 31 32 pythonImportsCheck = [ "nanoleaf" ]; 33 34 meta = { 35 description = "Module for interacting with Nanoleaf Aurora lighting"; 36 homepage = "https://github.com/software-2/nanoleaf"; 37 changelog = "https://github.com/software-2/nanoleaf/releases/tag/${version}"; 38 license = lib.licenses.mit; 39 maintainers = [ ]; 40 }; 41}