mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-03 02:33:15 +00:00
02dab4ab5c
Long term we should move everything over to `pyproject = true`, but in the mean time we can work towards deprecating the implicit `format` paremeter. cc https://github.com/NixOS/nixpkgs/issues/253154 cc @mweinelt @figsoda
27 lines
662 B
Nix
27 lines
662 B
Nix
{ lib, buildPythonPackage, fetchPypi, requests }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nanoleaf";
|
|
version = "0.4.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "17dmxibfjmwnrs6ng5cmvfis3cv6iw267xb8n1pijy15y9dz0s8s";
|
|
};
|
|
|
|
prePatch = ''
|
|
sed -i '/^gitVersion =/d' setup.py
|
|
substituteInPlace setup.py --replace 'gitVersion' '"${version}"'
|
|
'';
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
meta = with lib; {
|
|
description = "A python interface for Nanoleaf Aurora lighting";
|
|
homepage = "https://github.com/software-2/nanoleaf";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|