From 076a93efc688d9b34b77e268be6735672cd82a2f Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 16 May 2023 09:05:57 +0200 Subject: [PATCH] python3Packages.memestra: init at 0.2.1 --- .../python-modules/memestra/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/memestra/default.nix diff --git a/pkgs/development/python-modules/memestra/default.nix b/pkgs/development/python-modules/memestra/default.nix new file mode 100644 index 000000000000..3bcae8336a89 --- /dev/null +++ b/pkgs/development/python-modules/memestra/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildPythonPackage +, fetchPypi +, beniget +, frilouz +, gast +, nbconvert +, nbformat +, pythonOlder +, pyyaml +}: + +buildPythonPackage rec { + pname = "memestra"; + version = "0.2.1"; + + disabled = pythonOlder "3.4"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-6shwf9BoDfZMy0itP8esNP4ov6fw6LJpO3Y5ZahwDZw="; + }; + + propagatedBuildInputs = [ + gast + beniget + frilouz + nbconvert + nbformat + pyyaml + ]; + + # Tests are not detected and so the checkPhase fails + doCheck = false; + + pythonImportsCheck = [ + "memestra" + ]; + + meta = with lib; { + description = "A linter that tracks reference to deprecated functions."; + homepage = "https://github.com/QuantStack/memestra"; + license = licenses.bsd3; + maintainers = with maintainers; [ GaetanLepage ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 75882933ed29..1810fc039c51 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6109,6 +6109,8 @@ self: super: with self; { meld3 = callPackage ../development/python-modules/meld3 { }; + memestra = callPackage ../development/python-modules/memestra { }; + memory-allocator = callPackage ../development/python-modules/memory-allocator { }; memory_profiler = callPackage ../development/python-modules/memory_profiler { };