From ef98e15e38d715382b7b3bc3eb814d726458b5af Mon Sep 17 00:00:00 2001 From: Samuel Ainsworth Date: Sun, 12 Sep 2021 02:15:19 +0000 Subject: [PATCH 1/3] python3Packages.adjustText: init at 0.7.3 --- .../python-modules/adjustText/default.nix | 29 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/python-modules/adjustText/default.nix diff --git a/pkgs/development/python-modules/adjustText/default.nix b/pkgs/development/python-modules/adjustText/default.nix new file mode 100644 index 000000000000..56f0fa930521 --- /dev/null +++ b/pkgs/development/python-modules/adjustText/default.nix @@ -0,0 +1,29 @@ +{ buildPythonPackage +, numpy +, matplotlib +, fetchFromGitHub +, lib +}: + +buildPythonPackage rec { + pname = "adjustText"; + version = "0.7.3"; + + src = fetchFromGitHub { + owner = "Phlya"; + repo = pname; + rev = version; + sha256 = "02apaznnnmwmrn342f22dj5dldn56gdl9v5qix07ah6kgp9503yw"; + }; + + propagatedBuildInputs = [ matplotlib numpy ]; + + pythonImportsCheck = [ "adjustText" ]; + + meta = with lib; { + description = "Iteratively adjust text position in matplotlib plots to minimize overlaps"; + homepage = "https://github.com/Phlya/adjustText"; + license = licenses.mit; + maintainers = with maintainers; [ samuela ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cce7d2dab0f9..0d49c4611c1f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -209,6 +209,8 @@ in { adguardhome = callPackage ../development/python-modules/adguardhome { }; + adjustText = callPackage ../development/python-modules/adjustText { }; + advantage-air = callPackage ../development/python-modules/advantage-air { }; aemet-opendata = callPackage ../development/python-modules/aemet-opendata { }; From 975d350d51db0bcd956e5f57afd14ba53606144c Mon Sep 17 00:00:00 2001 From: Samuel Ainsworth Date: Mon, 13 Sep 2021 00:19:41 +0000 Subject: [PATCH 2/3] python3Packages.{adjustText -> adjusttext}: PEP-503 naming --- .../python-modules/{adjustText => adjusttext}/default.nix | 6 +++--- pkgs/top-level/python-packages.nix | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename pkgs/development/python-modules/{adjustText => adjusttext}/default.nix (82%) diff --git a/pkgs/development/python-modules/adjustText/default.nix b/pkgs/development/python-modules/adjusttext/default.nix similarity index 82% rename from pkgs/development/python-modules/adjustText/default.nix rename to pkgs/development/python-modules/adjusttext/default.nix index 56f0fa930521..5a1d3f936ec0 100644 --- a/pkgs/development/python-modules/adjustText/default.nix +++ b/pkgs/development/python-modules/adjusttext/default.nix @@ -6,7 +6,7 @@ }: buildPythonPackage rec { - pname = "adjustText"; + pname = "adjusttext"; version = "0.7.3"; src = fetchFromGitHub { @@ -22,8 +22,8 @@ buildPythonPackage rec { meta = with lib; { description = "Iteratively adjust text position in matplotlib plots to minimize overlaps"; - homepage = "https://github.com/Phlya/adjustText"; - license = licenses.mit; + homepage = "https://github.com/Phlya/adjustText"; + license = licenses.mit; maintainers = with maintainers; [ samuela ]; }; } diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0d49c4611c1f..a08e8d1f79f8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -209,7 +209,7 @@ in { adguardhome = callPackage ../development/python-modules/adguardhome { }; - adjustText = callPackage ../development/python-modules/adjustText { }; + adjusttext = callPackage ../development/python-modules/adjusttext { }; advantage-air = callPackage ../development/python-modules/advantage-air { }; From 5b1ce387db813d0378a6f9c4e096ebf280a01bcc Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 24 Sep 2021 08:55:46 +0200 Subject: [PATCH 3/3] python3Packages.adjusttext: add doCheck --- pkgs/development/python-modules/adjusttext/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/adjusttext/default.nix b/pkgs/development/python-modules/adjusttext/default.nix index 5a1d3f936ec0..82613ffa52aa 100644 --- a/pkgs/development/python-modules/adjusttext/default.nix +++ b/pkgs/development/python-modules/adjusttext/default.nix @@ -18,6 +18,9 @@ buildPythonPackage rec { propagatedBuildInputs = [ matplotlib numpy ]; + # Project has no tests + doCheck = false; + pythonImportsCheck = [ "adjustText" ]; meta = with lib; {