Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / k5test / default.nix
blobdbab01e01a5497c3f544447e3f44bb4755e42c0d
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , pythonOlder
5 , fetchPypi
6 , substituteAll
7 , findutils
8 , krb5
9 , setuptools
12 buildPythonPackage rec {
13   pname = "k5test";
14   version = "0.10.4";
15   pyproject = true;
17   disabled = pythonOlder "3.7";
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-4VJJHmYC9qk7PVM9OHvUWQ8kdgk7aEIXD/C5PeZL7zA=";
22   };
24   patches = [
25     (substituteAll {
26       src = ./fix-paths.patch;
27       inherit findutils krb5;
28       # krb5-config is in dev output
29       krb5Dev = krb5.dev;
30     })
31   ];
33   nativeBuildInputs = [
34     setuptools
35   ];
37   # No tests
38   doCheck = false;
40   pythonImportsCheck = [
41     "k5test"
42   ];
44   meta = with lib; {
45     description = "Library for setting up self-contained Kerberos 5 environment";
46     homepage = "https://github.com/pythongssapi/k5test";
47     changelog = "https://github.com/pythongssapi/k5test/releases/tag/v${version}";
48     license = licenses.mit;
49     maintainers = with maintainers; [ ];
50     broken = stdenv.isDarwin;
51   };