Skip to content

Commit 33c6503

Browse files
Merge pull request #278394 from SuperSandro2000/python-modules-buildPythonPackage
python311Packages.yasi: use buildPythonPackage, fypp: move python application out of python-modules
2 parents 9e30176 + ce11a6f commit 33c6503

3 files changed

Lines changed: 14 additions & 9 deletions

File tree

pkgs/development/python-modules/fypp/default.nix renamed to pkgs/by-name/fy/fypp/package.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
{ lib, stdenv, fetchFromGitHub, buildPythonApplication }:
1+
{ lib, fetchFromGitHub, python3 }:
22

3-
buildPythonApplication rec {
3+
python3.pkgs.buildPythonApplication rec {
44
pname = "fypp";
55
version = "3.2";
6-
format = "setuptools";
6+
pyproject = true;
77

88
src = fetchFromGitHub {
99
owner = "aradi";
@@ -12,6 +12,8 @@ buildPythonApplication rec {
1212
hash = "sha256-MgGVlOqOIrIVoDfBMVpFLT26mhYndxans2hfo/+jdoA=";
1313
};
1414

15+
nativeBuildInputs = [ python3.pkgs.setuptools ];
16+
1517
meta = with lib; {
1618
description = "Python powered Fortran preprocessor";
1719
homepage = "https://github.com/aradi/fypp";

pkgs/development/python-modules/yasi/default.nix

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
{ lib
2-
, buildPythonApplication
2+
, buildPythonPackage
33
, colorama
44
, fetchFromGitHub
55
, pytestCheckHook
6+
, setuptools
67
}:
78

8-
buildPythonApplication rec {
9+
buildPythonPackage rec {
910
pname = "yasi";
1011
version = "2.1.2";
11-
format = "setuptools";
12+
pyproject = true;
1213

1314
src = fetchFromGitHub {
1415
owner = "nkmathew";
@@ -17,11 +18,15 @@ buildPythonApplication rec {
1718
hash = "sha256-xKhVTmh/vrtBkatxtk8R4yqbGroH0I+xTKNYUpuikt4=";
1819
};
1920

21+
nativeBuildInputs = [
22+
setuptools
23+
];
24+
2025
propagatedBuildInputs = [
2126
colorama
2227
];
2328

24-
nativeBuildInputs = [
29+
nativeCheckInputs = [
2530
pytestCheckHook
2631
];
2732

pkgs/top-level/all-packages.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23832,8 +23832,6 @@ with pkgs;
2383223832

2383323833
toml-f = callPackage ../development/libraries/toml-f { };
2383423834

23835-
fypp = python3Packages.callPackage ../development/python-modules/fypp { };
23836-
2383723835
dbcsr = callPackage ../development/libraries/science/math/dbcsr { };
2383823836

2383923837
taco = callPackage ../development/libraries/taco { };

0 commit comments

Comments
 (0)