mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
38 lines
736 B
Nix
38 lines
736 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, colorlog
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, pyserial
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pypca";
|
|
version = "0.0.13";
|
|
format = "setuptools";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0y0p2rm22x21mykipiv42fjc79b0969qsbhk3cqkrdnqwh5psbdl";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
colorlog
|
|
pyserial
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pypca" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for interacting with the PCA 301 smart plugs";
|
|
mainProgram = "pypca";
|
|
homepage = "https://github.com/majuss/pypca";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|