forked from mirrors/nixpkgs
Merge pull request #148709 from fabaff/skodaconnect
python3Packages.skodaconnect: init at 1.1.12
This commit is contained in:
commit
345ef88b8e
61
pkgs/development/python-modules/skodaconnect/default.nix
Normal file
61
pkgs/development/python-modules/skodaconnect/default.nix
Normal file
|
@ -0,0 +1,61 @@
|
|||
{ lib
|
||||
, aiohttp
|
||||
, beautifulsoup4
|
||||
, buildPythonPackage
|
||||
, cryptography
|
||||
, fetchFromGitHub
|
||||
, lxml
|
||||
, pyjwt
|
||||
, pythonOlder
|
||||
, setuptools-scm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "skodaconnect";
|
||||
version = "1.1.12";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lendy007";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-OKNw+t8S6rRQDKNRBN/CU36OwWojuOH6mMQ5QItkkb8=";
|
||||
};
|
||||
|
||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiohttp
|
||||
beautifulsoup4
|
||||
cryptography
|
||||
lxml
|
||||
pyjwt
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "'pytest>=5,<6'," ""
|
||||
substituteInPlace requirements.txt \
|
||||
--replace "pytest-asyncio" ""
|
||||
'';
|
||||
|
||||
# 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";
|
||||
license = with licenses; [ asl20 ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
|
@ -8751,6 +8751,8 @@ in {
|
|||
|
||||
sklearn-deap = callPackage ../development/python-modules/sklearn-deap { };
|
||||
|
||||
skodaconnect = callPackage ../development/python-modules/skodaconnect { };
|
||||
|
||||
skorch = callPackage ../development/python-modules/skorch { };
|
||||
|
||||
skybellpy = callPackage ../development/python-modules/skybellpy { };
|
||||
|
|
Loading…
Reference in a new issue