Skip to content

Commit

Permalink
pyp: migrate it to by-name hierarchy
Browse files Browse the repository at this point in the history
Since it is not used as library, it makes no sense to deploy it as a library.

(cherry picked from commit cd97526)
  • Loading branch information
AndersonTorres committed Mar 21, 2024
1 parent c3364d8 commit 2e808da
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
{ lib
, astunparse
, bc
, buildPythonPackage
, fetchFromGitHub
, flit-core
, jq
, pytestCheckHook
, pythonOlder
, python3
}:

let
pythonPackages = python3.pkgs;
finalAttrs = {
pname = "pyp";
version = "1.2.0";
Expand All @@ -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"
];
Expand All @@ -65,4 +57,4 @@ let
};
};
in
buildPythonPackage finalAttrs
pythonPackages.buildPythonPackage finalAttrs
2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12440,8 +12440,6 @@ with pkgs;

pywal = with python3Packages; toPythonApplication pywal;

pyp = with python3Packages; toPythonApplication pyp;

pystring = callPackage ../development/libraries/pystring { };

raysession = python3Packages.callPackage ../applications/audio/raysession {};
Expand Down
4 changes: 0 additions & 4 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10646,10 +10646,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 { };
Expand Down

0 comments on commit 2e808da

Please sign in to comment.