diff --git a/pkgs/development/python-modules/keyutils/default.nix b/pkgs/development/python-modules/keyutils/default.nix new file mode 100644 index 000000000000..031ae5a65c39 --- /dev/null +++ b/pkgs/development/python-modules/keyutils/default.nix @@ -0,0 +1,28 @@ +{ lib, buildPythonPackage, fetchFromGitHub, keyutils, pytest-runner, pytest }: + +buildPythonPackage rec { + pname = "keyutils"; + version = "0.6"; + + # github version comes bundled with tests + src = fetchFromGitHub { + owner = "sassoftware"; + repo = "python-keyutils"; + rev = version; + sha256 = "0pfqfr5xqgsqkxzrmj8xl2glyl4nbq0irs0k6ik7iy3gd3mxf5g1"; + }; + + postPatch = '' + substituteInPlace setup.py --replace '"pytest-runner"' "" + ''; + + buildInputs = [ keyutils ]; + nativeCheckInputs = [ pytest pytest-runner ]; + + meta = { + description = "A set of python bindings for keyutils"; + homepage = "https://github.com/sassoftware/python-keyutils"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ primeos ]; + }; +} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 75cc73b237a0..f44a985d0199 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -157,7 +157,6 @@ mapAliases ({ jupyter_server = jupyter-server; # added 2023-01-05 Kajiki = kajiki; # added 2023-02-19 Keras = keras; # added 2021-11-25 - keyutils = throw "keyutils no longer builds and is unmaintained"; # added 2023-06-10 ldap = python-ldap; # added 2022-09-16 lammps-cython = throw "lammps-cython no longer builds and is unmaintained"; # added 2021-07-04 logilab_astng = throw "logilab-astng has not been released since 2013 and is unmaintained"; # added 2022-11-29 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index aaaec9356c3a..23cecba0fb71 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5451,6 +5451,10 @@ self: super: with self; { keystoneauth1 = callPackage ../development/python-modules/keystoneauth1 { }; + keyutils = callPackage ../development/python-modules/keyutils { + inherit (pkgs) keyutils; + }; + kicad = toPythonModule (pkgs.kicad.override { python3 = python; }).src;