treewide/applications: use top-level fetchPypi

This commit is contained in:
figsoda 2023-05-25 10:51:30 -04:00
parent 9affd374ec
commit 8014b08ee0
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";
@ -25,7 +26,7 @@ mkDerivationWith python3Packages.buildPythonApplication rec {
qtWrapperArgs = lib.optionals archiveSupport [ "--prefix" "PATH" ":" "${ lib.makeBinPath [ p7zip ] }" ];
postFixup = ''
postFixup = ''
wrapProgram $out/bin/kcc "''${qtWrapperArgs[@]}"
'';

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";
};
@ -15,7 +15,7 @@ python3.pkgs.buildPythonApplication rec {
doCheck = false;
# This enables accessing modules stored in cwd
makeWrapperArgs = ["--prefix PYTHONPATH . :"];
makeWrapperArgs = [ "--prefix PYTHONPATH . :" ];
meta = with lib; {
description = "Python package that helps you build complex pipelines of batch jobs";
@ -25,7 +25,7 @@ python3.pkgs.buildPythonApplication rec {
'';
homepage = "https://github.com/spotify/luigi";
changelog = "https://github.com/spotify/luigi/releases/tag/${version}";
license = [ licenses.asl20 ];
license = [ licenses.asl20 ];
maintainers = [ maintainers.bhipple ];
};
}

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
@ -8,13 +9,13 @@
, poppler_gi
, withGstreamer ? stdenv.isLinux
, withVLC ? stdenv.isLinux
}:
}:
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";
};
@ -18,7 +18,7 @@ python3.pkgs.buildPythonApplication rec {
propagatedBuildInputs = with python3.pkgs; [ pathlib2 click toml lexid colorama setuptools ];
nativeCheckInputs = [ python3.pkgs.pytestCheckHook git mercurial];
nativeCheckInputs = [ python3.pkgs.pytestCheckHook git mercurial ];
disabledTests = [
# fails due to more aggressive setuptools version specifier validation

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,21 +1,21 @@
{ 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
pname = "git_big_picture"; # underscores needed for working download URL
python = "py3"; # i.e. no Python 2.7
sha256 = "a20a480057ced1585c4c38497d27a5012f12dd29697313f0bb8fa6ddbb5c17d8";
};
postFixup = ''
wrapProgram $out/bin/git-big-picture \
--prefix PATH ":" ${ lib.makeBinPath [ git graphviz ] }
'';
'';
meta = {
description = "Tool for visualization of Git repositories";

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";
};
@ -29,10 +30,10 @@ pythonPackages.buildPythonApplication rec {
# 2. $HOME is by default not a valid dir, so we have to set that too
# https://github.com/NixOS/nixpkgs/issues/12591
preCheck = ''
export HOME=$TMPDIR
git config --global user.email "nobody@example.com"
git config --global user.name "Nobody"
'';
export HOME=$TMPDIR
git config --global user.email "nobody@example.com"
git config --global user.name "Nobody"
'';
postInstall = ''
rm -r $out/${pythonPackages.python.sitePackages}/PyGitUp/tests

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";
};