about summary refs log tree commit diff
path: root/pkgs/development/python-modules/piep/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/piep/default.nix')
-rw-r--r--pkgs/development/python-modules/piep/default.nix29
1 files changed, 17 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/piep/default.nix b/pkgs/development/python-modules/piep/default.nix
index 0825380a925ba..6fc53f1bec978 100644
--- a/pkgs/development/python-modules/piep/default.nix
+++ b/pkgs/development/python-modules/piep/default.nix
@@ -1,30 +1,35 @@
-{ lib
-, buildPythonPackage
-, fetchPypi
-, nose
-, pygments
-, isPy3k
+{
+  lib,
+  buildPythonPackage,
+  fetchPypi,
+  setuptools,
+  pygments,
+  pytestCheckHook,
 }:
 
 buildPythonPackage rec {
   version = "0.10.0";
-  format = "setuptools";
   pname = "piep";
-  disabled = isPy3k;
+  pyproject = true;
 
   src = fetchPypi {
     inherit pname version;
     hash = "sha256-aM7KQJZr1P0Hs2ReyRj2ItGUo+fRJ+TU3lLAU2Mu8KA=";
   };
 
-  propagatedBuildInputs = [ pygments ];
-  nativeCheckInputs = [ nose ];
+  build-system = [ setuptools ];
+
+  dependencies = [ pygments ];
+
+  pythonImportsCheck = [ "piep" ];
+
+  nativeCheckInputs = [ pytestCheckHook ];
 
   meta = with lib; {
     description = "Bringing the power of python to stream editing";
     homepage = "https://github.com/timbertson/piep";
     maintainers = with maintainers; [ timbertson ];
-    license = licenses.gpl3;
+    license = licenses.gpl3Only;
+    mainProgram = "piep";
   };
-
 }