2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
2021-10-17 09:34:42 +00:00
|
|
|
, fetchPypi
|
|
|
|
, buildPythonPackage
|
2022-04-27 09:35:20 +00:00
|
|
|
, pythonOlder
|
2021-10-17 09:34:42 +00:00
|
|
|
, lz4
|
|
|
|
, keyring
|
|
|
|
, pbkdf2
|
2023-01-20 10:41:00 +00:00
|
|
|
, pycryptodomex
|
2021-10-17 09:34:42 +00:00
|
|
|
, pyaes
|
|
|
|
}:
|
2020-11-19 00:13:47 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "browser-cookie3";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.19.1";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-MDGtFLlrR+8eTIVF8vRj4QrYRO+DTc0Ova42HjHGEZo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
lz4
|
|
|
|
keyring
|
|
|
|
pbkdf2
|
|
|
|
pyaes
|
2023-01-20 10:41:00 +00:00
|
|
|
pycryptodomex
|
2021-10-17 09:34:42 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# No tests implemented
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"browser_cookie3"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Loads cookies from your browser into a cookiejar object";
|
|
|
|
homepage = "https://github.com/borisbabic/browser_cookie3";
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/borisbabic/browser_cookie3/blob/master/CHANGELOG.md";
|
2021-10-17 09:34:42 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ borisbabic ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|