1{
2 lib,
3 buildPythonPackage,
4 fetchpatch,
5 fetchPypi,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "cookies";
11 version = "2.2.1";
12 format = "setuptools";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-1raYeIyuTPpOYu+GQ6nKMyt5vZbLMUKUuGSujX6z7o4=";
17 };
18
19 patches = [
20 (fetchpatch {
21 name = "fix-deprecations.patch";
22 url = "https://gitlab.com/sashahart/cookies/-/commit/22543d970568d577effe120c5a34636a38aa397b.patch";
23 hash = "sha256-8e3haOnbSXlL/ZY4uv6P4+ABBKrsCjbEpsLHaulbIUk=";
24 })
25 ];
26
27 nativeBuildInputs = [ pytestCheckHook ];
28
29 disabledTests = [
30 # https://gitlab.com/sashahart/cookies/-/issues/6
31 "test_encoding_assumptions"
32 ];
33
34 meta = with lib; {
35 description = "Friendlier RFC 6265-compliant cookie parser/renderer";
36 homepage = "https://github.com/sashahart/cookies";
37 license = licenses.mit;
38 };
39}