about summary refs log tree commit diff
path: root/pkgs/development/python-modules/avro3k/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/avro3k/default.nix')
-rw-r--r--pkgs/development/python-modules/avro3k/default.nix18
1 files changed, 13 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/avro3k/default.nix b/pkgs/development/python-modules/avro3k/default.nix
index 43a61d6d0220..cc85bb4611a6 100644
--- a/pkgs/development/python-modules/avro3k/default.nix
+++ b/pkgs/development/python-modules/avro3k/default.nix
@@ -1,9 +1,15 @@
-{ lib, buildPythonPackage, fetchPypi, isPy3k }:
+{
+  lib,
+  buildPythonPackage,
+  fetchPypi,
+  setuptools,
+  isPy3k,
+}:
 
 buildPythonPackage rec {
   pname = "avro3k";
   version = "1.7.7-SNAPSHOT";
-  format = "setuptools";
+  pyproject = true;
   disabled = !isPy3k;
 
   src = fetchPypi {
@@ -14,13 +20,15 @@ buildPythonPackage rec {
   # setuptools.extern.packaging.version.InvalidVersion: Invalid version: '1.7.7-SNAPSHOT'
   postPatch = ''
     substituteInPlace setup.py \
-      --replace "1.7.7-SNAPSHOT" "1.7.7"
+      --replace-fail "1.7.7-SNAPSHOT" "1.7.7"
   '';
 
-  doCheck = false;        # No such file or directory: './run_tests.py
+  build-system = [ setuptools ];
+
+  doCheck = false; # No such file or directory: './run_tests.py
 
   meta = with lib; {
-    description = "A serialization and RPC framework";
+    description = "Serialization and RPC framework";
     mainProgram = "avro";
     homepage = "https://pypi.python.org/pypi/avro3k/";
   };