mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
fca9bc364a
Diff: https://github.com/bm1549/frigidaire/compare/refs/tags/0.18.12...0.18.13 Changelog: https://github.com/bm1549/frigidaire/releases/tag/0.18.13
54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, certifi
|
|
, chardet
|
|
, fetchFromGitHub
|
|
, idna
|
|
, pythonOlder
|
|
, requests
|
|
, urllib3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "frigidaire";
|
|
version = "0.18.13";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bm1549";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-FikBV4KjutQfupGPXcVT1h+BfQ099WRrmbrEJOaVCQI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace 'version = "SNAPSHOT"' 'version = "${version}"'
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
certifi
|
|
chardet
|
|
idna
|
|
requests
|
|
urllib3
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"frigidaire"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python API for the Frigidaire devices";
|
|
homepage = "https://github.com/bm1549/frigidaire";
|
|
changelog = "https://github.com/bm1549/frigidaire/releases/tag/${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|