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
|
|
|
|
, pycryptodome
|
|
|
|
, pyaes
|
|
|
|
}:
|
2020-11-19 00:13:47 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "browser-cookie3";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "0.16.2";
|
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;
|
2022-10-06 18:32:54 +00:00
|
|
|
hash = "sha256-IB0Ms+mCHh7lfG3XYfvE2h/2lec5Tq9AAjqANz7x0hE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-17 09:34:42 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
lz4
|
|
|
|
keyring
|
|
|
|
pbkdf2
|
|
|
|
pyaes
|
|
|
|
pycryptodome
|
|
|
|
];
|
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; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Loads cookies from your browser into a cookiejar object";
|
|
|
|
homepage = "https://github.com/borisbabic/browser_cookie3";
|
2021-10-17 09:34:42 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ borisbabic ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|