summary refs log tree commit diff
path: root/pkgs/development/python-modules/mizani
diff options
context:
space:
mode:
authorSamuel Ainsworth <skainsworth@gmail.com>2021-12-12 17:07:56 -0800
committerGitHub <noreply@github.com>2021-12-12 17:07:56 -0800
commit7aa859336967273d230ffc8ef8a6978088f4b8aa (patch)
tree25b729fe5de56744d0447899ec00bdb5f80f6482 /pkgs/development/python-modules/mizani
parent087242632bdbc056934555b8c62ac3ace1a34c64 (diff)
downloadnixpkgs-7aa859336967273d230ffc8ef8a6978088f4b8aa.tar
nixpkgs-7aa859336967273d230ffc8ef8a6978088f4b8aa.tar.gz
nixpkgs-7aa859336967273d230ffc8ef8a6978088f4b8aa.tar.bz2
nixpkgs-7aa859336967273d230ffc8ef8a6978088f4b8aa.tar.lz
nixpkgs-7aa859336967273d230ffc8ef8a6978088f4b8aa.tar.xz
nixpkgs-7aa859336967273d230ffc8ef8a6978088f4b8aa.tar.zst
nixpkgs-7aa859336967273d230ffc8ef8a6978088f4b8aa.zip
python3Packages.mizani: init at 0.7.3
* python3Packages.mizani: init at 0.7.3

* python3Packages.mizani: patch out pytest-cov and run nixpkgs-fmt

* python3Packages.mizani: use postPatch instead of patchPhase

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>

* python3Packages.mizani: include `pythonImportsCheck`

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/development/python-modules/mizani')
-rw-r--r--pkgs/development/python-modules/mizani/default.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/mizani/default.nix b/pkgs/development/python-modules/mizani/default.nix
new file mode 100644
index 00000000000..f7bf273f1a2
--- /dev/null
+++ b/pkgs/development/python-modules/mizani/default.nix
@@ -0,0 +1,37 @@
+{ buildPythonPackage
+, fetchFromGitHub
+, lib
+, matplotlib
+, palettable
+, pandas
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "mizani";
+  version = "0.7.3";
+
+  src = fetchFromGitHub {
+    owner = "has2k1";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "04r53dp5jbklv8l9ncgc5wiq0gx25y73h65gmmbbfkxwgsl3w78l";
+  };
+
+  postPatch = ''
+    substituteInPlace pytest.ini --replace " --cov=mizani --cov-report=xml" ""
+  '';
+
+  propagatedBuildInputs = [ matplotlib palettable pandas ];
+
+  checkInputs = [ pytestCheckHook ];
+
+  pythonImportsCheck = [ "mizani" ];
+
+  meta = with lib; {
+    description = "Scales for Python";
+    homepage = "https://github.com/has2k1/mizani";
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ samuela ];
+  };
+}