mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
338af8dbeb
Diff: skodaconnect/skodaconnect@refs/tags/1.3.7...1.3.8 Changelog: https://github.com/lendy007/skodaconnect/releases/tag/1.3.8
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib
|
|
, aiohttp
|
|
, beautifulsoup4
|
|
, buildPythonPackage
|
|
, cryptography
|
|
, fetchFromGitHub
|
|
, flit-core
|
|
, lxml
|
|
, pyjwt
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "skodaconnect";
|
|
version = "1.3.8";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lendy007";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-Isnji6hXkTuTmbMpSuim9uG5ECSDX6A8QZ13sTCU9t0=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# https://github.com/skodaconnect/skodaconnect/pull/103
|
|
substituteInPlace pyproject.toml \
|
|
--replace "Bug Tracker" '"Bug Tracker"'
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
beautifulsoup4
|
|
cryptography
|
|
lxml
|
|
pyjwt
|
|
];
|
|
|
|
# Project has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"skodaconnect"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python module to communicate with Skoda Connect";
|
|
homepage = "https://github.com/lendy007/skodaconnect";
|
|
changelog = "https://github.com/lendy007/skodaconnect/releases/tag/${version}";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|