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
666 B
Nix
27 lines
666 B
Nix
{ lib, fetchFromGitHub, buildPythonPackage, requests, pytest, flask, isPy27
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "4.1";
|
|
format = "setuptools";
|
|
pname = "roku";
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jcarbaugh";
|
|
repo = "python-roku";
|
|
rev = "v${version}";
|
|
sha256 = "09mq59kjll7gj1srw4qc921ncsm7cld95sbz5v3p2bwmgckpqza7";
|
|
};
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
nativeCheckInputs = [ pytest flask ];
|
|
pythonImportsCheck = [ "roku" ];
|
|
|
|
meta = with lib; {
|
|
description = "Screw remotes. Control your Roku with Python.";
|
|
homepage = "https://github.com/jcarbaugh/python-roku";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|