Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / cookies / default.nix
blob3f0d64c0c22d916883a313b0eaedb7f02ee27779
1 { lib
2 , buildPythonPackage
3 , fetchpatch
4 , fetchPypi
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "cookies";
10   version = "2.2.1";
11   format = "setuptools";
13   src = fetchPypi {
14     inherit pname version;
15     hash = "sha256-1raYeIyuTPpOYu+GQ6nKMyt5vZbLMUKUuGSujX6z7o4=";
16   };
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   ];
26   nativeBuildInputs = [
27     pytestCheckHook
28   ];
30   disabledTests = [
31     # https://gitlab.com/sashahart/cookies/-/issues/6
32     "test_encoding_assumptions"
33   ];
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   };