diff --git a/pkgs/development/python-modules/dlinfo/default.nix b/pkgs/development/python-modules/dlinfo/default.nix new file mode 100644 index 000000000000..a1f3ace78275 --- /dev/null +++ b/pkgs/development/python-modules/dlinfo/default.nix @@ -0,0 +1,37 @@ +{ lib +, stdenv +, buildPythonPackage +, fetchPypi +, setuptools-scm +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "dlinfo"; + version = "1.2.1"; + + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + sha256 = "5f6f43b47f3aa5fe12bd347cf536dc8fca6068c61a0a260e408bec7f6eb4bd38"; + }; + + nativeBuildInputs = [ + setuptools-scm + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "dlinfo" ]; + + meta = { + description = "Python wrapper for libc's dlinfo and dyld_find on Mac"; + homepage = "https://github.com/cloudflightio/python-dlinfo"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ dotlambda ]; + broken = stdenv.isDarwin; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index dec038f96923..e92216c5bdb3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2426,6 +2426,8 @@ in { inherit (pkgs) dlib; }; + dlinfo = callPackage ../development/python-modules/dlinfo { }; + dlx = callPackage ../development/python-modules/dlx { }; dmenu-python = callPackage ../development/python-modules/dmenu { };