Merge pull request #234006 from figsoda/pypi

treewide/applications: use top-level fetchPypi
This commit is contained in:
Weijia Wang 2023-05-25 18:50:14 +03:00 committed by GitHub
commit 6e6f778fe3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
28 changed files with 86 additions and 67 deletions

View file

@ -1,10 +1,11 @@
{ lib
, python3
, xorg
, argyllcms
, fetchPypi
, wrapGAppsHook
, gtk3
, librsvg
, xorg
, argyllcms
}:
python3.pkgs.buildPythonApplication rec {
@ -12,7 +13,7 @@ python3.pkgs.buildPythonApplication rec {
version = "3.9.10";
format = "setuptools";
src = python3.pkgs.fetchPypi {
src = fetchPypi {
pname = "DisplayCAL";
inherit version;
hash = "sha256-oDHDVb0zuAC49yPfmNe7xuFKaA1BRZGr75XwsLqugHs=";

View file

@ -1,10 +1,10 @@
{ lib, python3Packages }:
{ lib, python3Packages, fetchPypi }:
python3Packages.buildPythonApplication rec {
pname = "dosage";
version = "2.17";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "0vmxgn9wd3j80hp4gr5iq06jrl4gryz5zgfdd2ah30d12sfcfig0";
};

View file

@ -1,6 +1,7 @@
{ lib
, mkDerivationWith
, python3Packages
, fetchPypi
, p7zip
, archiveSupport ? true
}:
@ -9,7 +10,7 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
pname = "kcc";
version = "5.5.1";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit version;
pname = "KindleComicConverter";
sha256 = "5dbee5dc5ee06a07316ae5ebaf21ffa1970094dbae5985ad735e2807ef112644";

View file

@ -1,14 +1,15 @@
{ python3Packages
, qtbase
{ lib
, python3Packages
, fetchPypi
, wrapQtAppsHook
, lib
, qtbase
}:
python3Packages.buildPythonApplication rec {
pname = "veusz";
version = "3.6.2";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "whcaxF5LMEJNj8NSYeLpnb5uJboRl+vCQ1WxBrJjldE=";
};

View file

@ -6,10 +6,7 @@
, wrapGAppsHook
}:
let
inherit (python3.pkgs) buildPythonApplication buildPythonPackage fetchPypi;
in
buildPythonApplication rec {
python3.pkgs.buildPythonApplication rec {
pname = "MeerK40t";
version = "0.8.1000";
format = "setuptools";

View file

@ -1,10 +1,10 @@
{ lib, python3 }:
{ lib, python3, fetchPypi }:
python3.pkgs.buildPythonApplication rec {
pname = "luigi";
version = "3.0.2";
src = python3.pkgs.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "b4b1ccf086586d041d7e91e68515d495c550f30e4d179d63863fea9ccdbb78eb";
};

View file

@ -1,10 +1,10 @@
{ stdenv, lib, python3Packages }:
{ lib, python3Packages, fetchPypi, stdenv }:
python3Packages.buildPythonApplication rec {
pname = "dyndnsc";
version = "0.6.1";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "13078d29eea2f9a4ca01f05676c3309ead5e341dab047e0d51c46f23d4b7fbb4";
};

View file

@ -1,11 +1,13 @@
{ lib
, python3
, fetchPypi
}:
python3.pkgs.buildPythonPackage rec {
pname = "listparser";
version = "0.18";
src = python3.pkgs.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "0hdqs1mmayw1r8yla43hgb4d9y3zqs5483vgf8j9ygczkd2wrq2b";
};

View file

@ -1,5 +1,6 @@
{ lib
, python3
, fetchPypi
, fetchFromGitHub
}:
@ -8,7 +9,7 @@ let
packageOverrides = self: super: {
sqlalchemy = super.sqlalchemy.overridePythonAttrs (old: rec {
version = "1.4.48";
src = self.fetchPypi {
src = fetchPypi {
pname = "SQLAlchemy";
inherit version;
hash = "sha256-tHvChwltmJoIOM6W99jpZpFKJNqHftQadTHUS1XNuN8=";

View file

@ -1,10 +1,10 @@
{ lib, python3Packages, notmuch }:
{ lib, python3Packages, fetchPypi, notmuch }:
python3Packages.buildPythonApplication rec {
pname = "afew";
version = "3.0.1";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "0wpfqbqjlfb9z0hafvdhkm7qw56cr9kfy6n8vb0q42dwlghpz1ff";
};

View file

@ -1,10 +1,10 @@
{ lib, python3, notmuch }:
{ lib, python3, fetchPypi }:
python3.pkgs.buildPythonApplication rec {
pname = "mlarchive2maildir";
version = "0.0.9";
src = python3.pkgs.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "02zjwa7zbcbqj76l0qmg7bbf3fqli60pl2apby3j4zwzcrrryczs";
};

View file

@ -1,11 +1,11 @@
{ lib, python3 }:
{ lib, python3, fetchPypi }:
python3.pkgs.buildPythonApplication rec {
pname = "fava";
version = "1.24.4";
format = "pyproject";
src = python3.pkgs.fetchPypi {
src = fetchPypi {
inherit pname version;
hash = "sha256-klRPe6NQMn3HVayfCGc05mB0afi3x4Wlj3EI0XdSkMc=";
};

View file

@ -1,6 +1,7 @@
{ lib
, stdenv
, python3Packages
, fetchPypi
, wrapGAppsHook
, gtk3
, gobject-introspection
@ -14,7 +15,7 @@ python3Packages.buildPythonApplication rec {
pname = "pympress";
version = "1.7.2";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "LFUzrGHr8jmUqoIcKokC0gNDVmW1EUZlj9eI+GDycvI=";
};

View file

@ -1,16 +1,17 @@
{ lib
, copyDesktopItems
, makeDesktopItem
, python3
, qtsvg
, fetchPypi
, copyDesktopItems
, wrapQtAppsHook
, qtsvg
, makeDesktopItem
}:
python3.pkgs.buildPythonApplication rec {
pname = "pyspread";
version = "2.0.2";
src = python3.pkgs.fetchPypi {
src = fetchPypi {
inherit pname version;
hash = "sha256-rg2T9Y9FU2a+aWg0XM8jyQB9t8zDVlpad3TjUcx4//8=";
};

View file

@ -1,5 +1,6 @@
{ lib
, python3Packages
, fetchPypi
, pkg-config
, librsvg
, gobject-introspection
@ -24,7 +25,7 @@ python3Packages.buildPythonApplication rec {
disabled = !python3Packages.isPy3k;
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "1rca19krvmycdhmi1vb4ixwq0cagmrkhbqry4f19b725nlp8cv0q";
};

View file

@ -1,10 +1,10 @@
{ lib, python3, fetchurl }:
{ lib, python3, fetchPypi }:
python3.pkgs.buildPythonPackage rec {
pname = "MACS2";
version = "2.2.7.1";
src = python3.pkgs.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "1rcxj943kgzs746f5jrb72x1cp4v50rk3qmad0m99a02vndscb5d";
};

View file

@ -1,6 +1,7 @@
{ lib
, stdenv
, python3
, fetchPypi
, fetchFromBitbucket
, fetchpatch
, substituteAll
@ -12,7 +13,7 @@ let
packageOverrides = self: super: {
shapely = super.shapely.overridePythonAttrs (old: rec {
version = "1.8.4";
src = self.fetchPypi {
src = fetchPypi {
pname = "Shapely";
inherit version;
hash = "sha256-oZXlHKr6IYKR8suqP+9p/TNTyT7EtlsqRyLEz0DDGYw=";
@ -30,7 +31,8 @@ let
});
};
};
in python.pkgs.buildPythonApplication rec {
in
python.pkgs.buildPythonApplication rec {
pname = "flatcam";
version = "8.5";

View file

@ -1,10 +1,10 @@
{ lib, python3Packages }:
{ lib, python3Packages, fetchPypi }:
python3Packages.buildPythonApplication rec {
pname = "xlsxgrep";
version = "0.0.23";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "014i1nifx67mxi0k9sch00j6bjykb6krzl2q3ara9s1g75inl4rm";
};

View file

@ -1,10 +1,10 @@
{ lib, python3, git, mercurial}:
{ lib, python3, fetchPypi, git, mercurial }:
python3.pkgs.buildPythonApplication rec {
pname = "bumpver";
version = "2021.1110";
src = python3.pkgs.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "b6a0ddb78db7e00ae7ffe895bf8ef97f91e6310dfc1c4721896bdfd044b1cb03";
};

View file

@ -1,10 +1,10 @@
{ lib, git, python3Packages }:
{ lib, python3Packages, fetchPypi, git }:
python3Packages.buildPythonApplication rec {
pname = "git-aggregator";
version = "2.1.0";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "sha256-79xNPzYP1j71sU5wZM5e2xTqQExqQEdxXPxbk4T/Scw=";
};

View file

@ -1,11 +1,11 @@
{ python3Packages, lib, git, graphviz }:
{ lib, python3Packages, fetchPypi, git, graphviz }:
python3Packages.buildPythonApplication rec {
pname = "git-big-picture";
version = "1.1.1";
format = "wheel";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit format version;
pname = "git_big_picture"; # underscores needed for working download URL
python = "py3"; # i.e. no Python 2.7

View file

@ -1,5 +1,6 @@
{ lib
, pythonPackages
, fetchPypi
, git
}:
@ -7,7 +8,7 @@ pythonPackages.buildPythonApplication rec {
pname = "git-up";
version = "1.6.1";
src = pythonPackages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "0gs791yb0cndg9879vayvcj329jwhzpk6wrf9ri12l5hg8g490za";
};

View file

@ -1,12 +1,13 @@
{ lib
, python3Packages
, fetchPypi
}:
python3Packages.buildPythonApplication rec {
pname = "gomp";
version = "1.1.0";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "11nq40igqbyfiygdzb1zyxx1n6d9xkv8vlmprbbi75mq54gfihhb";
};

View file

@ -1,12 +1,13 @@
{ lib
, python3Packages
, fetchPypi
}:
python3Packages.buildPythonApplication rec {
pname = "legit";
version = "1.2.0";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "0ngh3ar6v15516f52j21k6qz7hykmxfjadhb2rakvl27b5xvjy1c";
};

View file

@ -1,5 +1,6 @@
{ lib
, python3
, fetchPypi
, coreutils
, git
, mercurial
@ -9,7 +10,7 @@ python3.pkgs.buildPythonApplication rec {
version = "0.6.1";
pname = "nbstripout";
src = python3.pkgs.fetchPypi {
src = fetchPypi {
inherit pname version;
hash = "sha256-kGW83RSIs4bk88CB/8HUj0UTovjYv00NmiggjF2v6dM=";
};

View file

@ -1,4 +1,11 @@
{ stdenv, lib, python3, fetchFromGitHub, buildNpmPackage, jq }:
{ lib
, python3
, fetchPypi
, buildNpmPackage
, fetchFromGitHub
, jq
, stdenv
}:
let
python = python3.override {
@ -6,7 +13,7 @@ let
# pyCA is incompatible with SQLAlchemy 2.0
sqlalchemy = super.sqlalchemy.overridePythonAttrs (old: rec {
version = "1.4.46";
src = self.fetchPypi {
src = fetchPypi {
pname = "SQLAlchemy";
inherit version;
hash = "sha256-aRO4JH2KKS74MVFipRkx4rQM6RaB8bbxj2lwRSAMSjA=";

View file

@ -1,7 +1,7 @@
{ lib
, python3Packages
, fetchPypi
, ffmpeg
, fetchpatch
}:
python3Packages.buildPythonApplication rec {
@ -9,7 +9,7 @@ python3Packages.buildPythonApplication rec {
version = "5.3.0";
format = "pyproject";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
hash = "sha256-+9MSSzPYZ8gwOeQLehR41SklfdcUn8Pa6TI//lh9twE=";
};

View file

@ -1,10 +1,10 @@
{ lib, python3Packages }:
{ lib, python3Packages, fetchPypi }:
python3Packages.buildPythonApplication rec {
pname = "i3altlayout";
version = "0.3";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "1h0phf3s6ljffxw0bs73k041wildaz01h37iv5mxhami41wrh4qf";
};