about summary refs log tree commit diff
path: root/pkgs/development/python-modules/datashape/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/datashape/default.nix')
-rw-r--r--pkgs/development/python-modules/datashape/default.nix65
1 files changed, 45 insertions, 20 deletions
diff --git a/pkgs/development/python-modules/datashape/default.nix b/pkgs/development/python-modules/datashape/default.nix
index 6736483a8ba46..64d0afae90c1e 100644
--- a/pkgs/development/python-modules/datashape/default.nix
+++ b/pkgs/development/python-modules/datashape/default.nix
@@ -1,36 +1,62 @@
-{ lib
-, buildPythonPackage
-, fetchFromGitHub
-, pytest
-, mock
-, numpy
-, multipledispatch
-, python-dateutil
+{
+  lib,
+  buildPythonPackage,
+  fetchFromGitHub,
+  pytest,
+  mock,
+  numpy,
+  multipledispatch,
+  python-dateutil,
+  setuptools,
+  versioneer,
 }:
 
 let
   # Fetcher function looks similar to fetchPypi.
   # Allows for easier overriding, without having to know
   # how the source is actually fetched.
-  fetcher = {pname, version, sha256}: fetchFromGitHub {
-    owner = "blaze";
-    repo = pname;
-    rev = version;
-    inherit sha256;
-  };
-
-in buildPythonPackage rec {
+  fetcher =
+    {
+      pname,
+      version,
+      sha256,
+    }:
+    fetchFromGitHub {
+      owner = "blaze";
+      repo = pname;
+      rev = version;
+      inherit sha256;
+    };
+in
+buildPythonPackage rec {
   pname = "datashape";
   version = "0.5.4";
-  format = "setuptools";
+
+  pyproject = true;
+  build-system = [
+    setuptools
+    versioneer
+  ];
 
   src = fetcher {
     inherit pname version;
     sha256 = "0rhlj2kjj1vx5m73wnc5518rd6cs1zsbgpsvzk893n516k69shcf";
   };
 
-  nativeCheckInputs = [ pytest mock ];
-  propagatedBuildInputs = [ numpy multipledispatch python-dateutil ];
+  postPatch = ''
+    # Remove vendorized versioneer.py
+    rm versioneer.py
+  '';
+
+  nativeCheckInputs = [
+    pytest
+    mock
+  ];
+  dependencies = [
+    numpy
+    multipledispatch
+    python-dateutil
+  ];
 
   # Disable several tests
   # https://github.com/blaze/datashape/issues/232
@@ -46,6 +72,5 @@ in buildPythonPackage rec {
     homepage = "https://github.com/ContinuumIO/datashape";
     description = "A data description language";
     license = lib.licenses.bsd2;
-    maintainers = with lib.maintainers; [ fridh ];
   };
 }