python311Packages.yalexs: refactor
This commit is contained in:
parent
09a92121c5
commit
0bd4cef20a
1 changed files with 13 additions and 8 deletions
|
@ -13,22 +13,33 @@
|
|||
, pythonOlder
|
||||
, requests
|
||||
, requests-mock
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "yalexs";
|
||||
version = "1.11.3";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bdraco";
|
||||
repo = pname;
|
||||
repo = "yalexs";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-BO+tgRHQsvRkkueIHa56YABfK5+QqnRlGrRtNHqI1v4=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Not used requirement
|
||||
substituteInPlace setup.py \
|
||||
--replace-fail '"vol",' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
aiofiles
|
||||
aiohttp
|
||||
|
@ -46,12 +57,6 @@ buildPythonPackage rec {
|
|||
requests-mock
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
# Not used requirement
|
||||
substituteInPlace setup.py \
|
||||
--replace '"vol",' ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"yalexs"
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue