Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
894 B
Nix
40 lines
894 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchpatch,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cookies";
|
|
version = "2.2.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-1raYeIyuTPpOYu+GQ6nKMyt5vZbLMUKUuGSujX6z7o4=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "fix-deprecations.patch";
|
|
url = "https://gitlab.com/sashahart/cookies/-/commit/22543d970568d577effe120c5a34636a38aa397b.patch";
|
|
hash = "sha256-8e3haOnbSXlL/ZY4uv6P4+ABBKrsCjbEpsLHaulbIUk=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [ pytestCheckHook ];
|
|
|
|
disabledTests = [
|
|
# https://gitlab.com/sashahart/cookies/-/issues/6
|
|
"test_encoding_assumptions"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Friendlier RFC 6265-compliant cookie parser/renderer";
|
|
homepage = "https://github.com/sashahart/cookies";
|
|
license = licenses.mit;
|
|
};
|
|
}
|