0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
48 lines
934 B
Nix
48 lines
934 B
Nix
{ stdenv
|
|
, lib
|
|
, fetchPypi
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, lz4
|
|
, keyring
|
|
, pbkdf2
|
|
, pycryptodomex
|
|
, pyaes
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "browser-cookie3";
|
|
version = "0.16.5";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-i2Ib7OGnoimiZ2R/vGe6phPhA8lEP0BJ/gP1q9RVeiU=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
lz4
|
|
keyring
|
|
pbkdf2
|
|
pyaes
|
|
pycryptodomex
|
|
];
|
|
|
|
# No tests implemented
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"browser_cookie3"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Loads cookies from your browser into a cookiejar object";
|
|
homepage = "https://github.com/borisbabic/browser_cookie3";
|
|
changelog = "https://github.com/borisbabic/browser_cookie3/blob/master/CHANGELOG.md";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ borisbabic ];
|
|
broken = stdenv.isDarwin;
|
|
};
|
|
}
|