mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 20:34:06 +00:00
python311Packages.pycookiecheat: init at 0.5.0
This commit is contained in:
parent
4586970ee7
commit
a7e4673e15
66
pkgs/development/python-modules/pycookiecheat/default.nix
Normal file
66
pkgs/development/python-modules/pycookiecheat/default.nix
Normal file
@ -0,0 +1,66 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, cryptography
|
||||
, fetchFromGitHub
|
||||
, keyring
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pythonRelaxDepsHook
|
||||
, playwright
|
||||
, setuptools
|
||||
, setuptools-scm
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pycookiecheat";
|
||||
version = "0.5.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "n8henrie";
|
||||
repo = "pycookiecheat";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-3I7iw/dwF4lRqmVM3OR402InZCFoV9gzKpRQrx4F9KA=";
|
||||
};
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"cryptography"
|
||||
"keyring"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pythonRelaxDepsHook
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cryptography
|
||||
keyring
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
playwright
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"pycookiecheat"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Tests want to use playwright executable
|
||||
"test_no_cookies"
|
||||
"test_fake_cookie"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Borrow cookies from your browser's authenticated session for use in Python scripts";
|
||||
homepage = "https://github.com/n8henrie/pycookiecheat";
|
||||
changelog = "https://github.com/n8henrie/pycookiecheat/blob/v${version}/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -7797,6 +7797,8 @@ self: super: with self; {
|
||||
|
||||
pycontrol4 = callPackage ../development/python-modules/pycontrol4 { };
|
||||
|
||||
pycookiecheat = callPackage ../development/python-modules/pycookiecheat { };
|
||||
|
||||
pycoolmasternet-async = callPackage ../development/python-modules/pycoolmasternet-async { };
|
||||
|
||||
pyfibaro = callPackage ../development/python-modules/pyfibaro { };
|
||||
|
Loading…
Reference in New Issue
Block a user