Merge pull request #148706 from fabaff/seatconnect

python3Packages.seatconnect: init at 1.1.3
This commit is contained in:
Fabian Affolter 2021-12-08 10:31:13 +01:00 committed by GitHub
commit 8427f0a93f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 65 additions and 0 deletions

View file

@ -0,0 +1,63 @@
{ lib
, aiohttp
, beautifulsoup4
, buildPythonPackage
, cryptography
, fetchFromGitHub
, lxml
, pyjwt
, pythonOlder
, setuptools-scm
, xmltodict
}:
buildPythonPackage rec {
pname = "seatconnect";
version = "1.1.3";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "farfar";
repo = pname;
rev = "v${version}";
sha256 = "sha256-EOaFZch/C9N4lacZ4IqIJUVSaEn8wOFN/WN6WOL/1mo=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
propagatedBuildInputs = [
aiohttp
beautifulsoup4
cryptography
lxml
pyjwt
xmltodict
];
postPatch = ''
substituteInPlace setup.py \
--replace "'pytest>=5,<6'," ""
substituteInPlace requirements.txt \
--replace "pytest-asyncio" ""
'';
# Project only has a dummy test
doCheck = false;
pythonImportsCheck = [
"seatconnect"
];
meta = with lib; {
description = "Python module to communicate with Seat Connect";
homepage = "https://github.com/farfar/seatconnect";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -8584,6 +8584,8 @@ in {
seaserv = toPythonModule pkgs.seafile-server;
seatconnect = callPackage ../development/python-modules/seatconnect { };
seccomp = callPackage ../development/python-modules/seccomp { };
secp256k1 = callPackage ../development/python-modules/secp256k1 {