diff --git a/pkgs/development/python-modules/guppy3/default.nix b/pkgs/development/python-modules/guppy3/default.nix new file mode 100644 index 000000000000..578f979914cb --- /dev/null +++ b/pkgs/development/python-modules/guppy3/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, tkinter +}: + +buildPythonPackage rec { + pname = "guppy3"; + version = "3.1.0"; + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "zhuyifei1999"; + repo = pname; + rev = "v${version}"; + sha256 = "0yjsn8najbic4f50nj6jzhzrhj1bw6918w0gihdkzhqynwgqi64m"; + }; + + propagatedBuildInputs = [ tkinter ]; + + # Tests are starting a Tkinter GUI + doCheck = false; + pythonImportsCheck = [ "guppy" ]; + + meta = with lib; { + description = "Python Programming Environment & Heap analysis toolset"; + homepage = "https://zhuyifei1999.github.io/guppy3/"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 17f6624c42ea..1468786383f3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2854,6 +2854,8 @@ in { else callPackage ../development/python-modules/gunicorn { }; + guppy3 = callPackage ../development/python-modules/guppy3 { }; + gurobipy = if stdenv.hostPlatform.system == "x86_64-darwin" then callPackage ../development/python-modules/gurobipy/darwin.nix { inherit (pkgs.darwin) cctools insert_dylib; } else if stdenv.hostPlatform.system == "x86_64-linux" then