about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2021-11-16 12:14:54 +0100
committerGitHub <noreply@github.com>2021-11-16 12:14:54 +0100
commitc0066eb9cd2bdd3acbaba230b20d936ccb82918b (patch)
tree772ca423e9defcb2f46bec8f4e9fdd3a60c31a8d
parentfee52c1bec3fef9b6d16f46afead438212885d01 (diff)
python3Packages.pyp: add pythonImportsCheck
-rw-r--r--pkgs/development/python-modules/pyp/default.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/pyp/default.nix b/pkgs/development/python-modules/pyp/default.nix
index 0b2ff25444a05..1eeeb83a9dce6 100644
--- a/pkgs/development/python-modules/pyp/default.nix
+++ b/pkgs/development/python-modules/pyp/default.nix
@@ -12,6 +12,9 @@
 buildPythonPackage rec {
   pname = "pyp";
   version = "1.0.0";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.6";
 
   src = fetchFromGitHub {
     owner = "hauntsaninja";
@@ -27,6 +30,7 @@ buildPythonPackage rec {
   preCheck = ''
     export PATH=$out/bin:$PATH
   '';
+
   checkInputs = [
     pytestCheckHook
     coreutils
@@ -34,8 +38,12 @@ buildPythonPackage rec {
     bc
   ];
 
+  pythonImportsCheck = [
+    "pyp"
+  ];
+
   meta = with lib; {
-    description = "Easily run Python at the shell! Magical, but never mysterious.";
+    description = "Easily run Python at the shell! Magical, but never mysterious";
     homepage = "https://github.com/hauntsaninja/pyp";
     license = licenses.mit;
     maintainers = with maintainers; [ rmcgibbo ];