Unverified Commit ae4a1a48 authored by Martin Weinelt's avatar Martin Weinelt
Browse files

treewide: add explicit format attribute for Python packages

If a Python package does not come with either `format` or `pyproject` we
consider it a setuptools build, that calls `setup.py` directly, which is
deprecated.

This change, as a first step, migrates a large chunk of these packages to
set setuptools as their explicit format

This is so we can unify the problem space for the next step of the
migration.
parent 870010b0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -137,6 +137,7 @@ let
  nixos-taskserver =
    with pkgs.python3.pkgs;
    buildPythonApplication {
      format = "setuptools";
      name = "nixos-taskserver";

      src = pkgs.runCommand "nixos-taskserver-src" { preferLocalBuild = true; } ''
+1 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@ import ../make-test-python.nix {
    let
      testLib = pkgs.python3Packages.buildPythonPackage {
        name = "confinement-testlib";
        format = "setuptools";
        unpackPhase = ''
          cat > setup.py <<EOF
          from setuptools import setup
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ with pythonPackages;
buildPythonApplication rec {
  pname = "greg";
  version = "0.4.8";
  format = "setuptools";

  disabled = !isPy3k;

+1 −0
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
buildPythonApplication {
  pname = "hushboard";
  version = "unstable-2021-03-17";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "stuartlangridge";
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
python3Packages.buildPythonApplication rec {
  pname = "Mopidy-Bandcamp";
  version = "1.1.5";
  format = "setuptools";
  src = fetchPypi {
    inherit pname version;
    hash = "sha256-wg9zcOKfZQRhpyA1Cu5wvdwKpmrlcr2m9mrqBHgUXAQ=";
Loading