2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, 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-05-24 13:37:59 +00:00
|
|
|
version = "0.18.0";
|
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-05-24 13:37:59 +00:00
|
|
|
hash = "sha256-bSP6likSwEbxN4S9qbJmPcs8joc5e10FiqVL9gE7ni8=";
|
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 ];
|
2023-01-20 10:41:00 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|