Commit cd975261 authored by Anderson Torres's avatar Anderson Torres
Browse files

pyp: migrate it to by-name hierarchy

Since it is not used as library, it makes no sense to deploy it as a library.
parent d6599f77
Loading
Loading
Loading
Loading
+6 −14
Original line number Diff line number Diff line
{ lib
, astunparse
, bc
, buildPythonPackage
, fetchFromGitHub
, flit-core
, jq
, pytestCheckHook
, pythonOlder
, python3
}:

let
  pythonPackages = python3.pkgs;
  finalAttrs = {
    pname = "pyp";
    version = "1.2.0";
@@ -23,22 +20,17 @@ let

    pyproject = true;

    disabled = pythonOlder "3.8";

    build-system = [
    build-system = with pythonPackages; [
      flit-core
    ];

    nativeCheckInputs = [
    nativeCheckInputs = (with pythonPackages; [
      pytestCheckHook
    ]) ++ [
      bc
      jq
    ];

    dependencies = lib.optionals (pythonOlder "3.9") [
      astunparse
    ];

    pythonImportsCheck = [
      "pyp"
    ];
@@ -65,4 +57,4 @@ let
    };
  };
in
buildPythonPackage finalAttrs
pythonPackages.buildPythonPackage finalAttrs
+0 −2
Original line number Diff line number Diff line
@@ -12341,8 +12341,6 @@ with pkgs;
  pywal = with python3Packages; toPythonApplication pywal;
  pyp = with python3Packages; toPythonApplication pyp;
  pystring = callPackage ../development/libraries/pystring { };
  raysession = python3Packages.callPackage ../applications/audio/raysession {};
+0 −4
Original line number Diff line number Diff line
@@ -11159,10 +11159,6 @@ self: super: with self; {
  pyomo = callPackage ../development/python-modules/pyomo { };
  pyp = callPackage ../development/python-modules/pyp {
    inherit (pkgs) bc jq;
  };
  pypng = callPackage ../development/python-modules/pypng { };
  phonemizer = callPackage ../development/python-modules/phonemizer { };