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