diff --git a/pkgs/development/compilers/lesscpy/default.nix b/pkgs/development/compilers/lesscpy/default.nix index 30429f1a9f28..f30b392b7459 100644 --- a/pkgs/development/compilers/lesscpy/default.nix +++ b/pkgs/development/compilers/lesscpy/default.nix @@ -1,10 +1,10 @@ -{ stdenv, lib, python3Packages }: +{ lib, python3Packages, fetchPypi }: python3Packages.buildPythonApplication rec { pname = "lesscpy"; version = "0.13.0"; - src = python3Packages.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "1bbjag13kawnjdn7q4flfrkd0a21rgn9ycfqsgfdmg658jsx1ipk"; }; diff --git a/pkgs/development/misc/resholve/deps.nix b/pkgs/development/misc/resholve/deps.nix index ef0ebaa670c1..80ffa4aa42ff 100644 --- a/pkgs/development/misc/resholve/deps.nix +++ b/pkgs/development/misc/resholve/deps.nix @@ -2,6 +2,7 @@ , callPackage , fetchFromGitHub , python27 +, fetchPypi , ... }: @@ -47,7 +48,7 @@ rec { pname = "six"; version = "1.16.0"; - src = python27.pkgs.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"; }; @@ -64,7 +65,7 @@ rec { pname = "typing"; version = "3.10.0.0"; - src = python27.pkgs.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "13b4ad211f54ddbf93e5901a9967b1e07720c1d1b78d596ac6a439641aa1b130"; }; diff --git a/pkgs/development/python-modules/dashing/default.nix b/pkgs/development/python-modules/dashing/default.nix index e4c57679966a..d49fd667cdbe 100644 --- a/pkgs/development/python-modules/dashing/default.nix +++ b/pkgs/development/python-modules/dashing/default.nix @@ -1,5 +1,6 @@ { lib , python3 +, fetchPypi }: python3.pkgs.buildPythonPackage rec { @@ -9,7 +10,7 @@ python3.pkgs.buildPythonPackage rec { disabled = python3.pythonOlder "3.7"; - src = python3.pkgs.fetchPypi { + src = fetchPypi { inherit pname version; hash = "sha256-JRRgjg8pp3Xb0bERFWEhnOg9U8+kuqL+QQH6uE/Vbxs="; }; diff --git a/pkgs/development/python-modules/memory_profiler/default.nix b/pkgs/development/python-modules/memory_profiler/default.nix index 994863dbbc06..df1a5410ffbf 100644 --- a/pkgs/development/python-modules/memory_profiler/default.nix +++ b/pkgs/development/python-modules/memory_profiler/default.nix @@ -1,12 +1,13 @@ { lib , python +, fetchPypi }: python.pkgs.buildPythonPackage rec { pname = "memory_profiler"; version = "0.55.0"; - src = python.pkgs.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "1hdgh5f59bya079w4ahx4l0hf4gc5yvaz44irp5x57cj9hkpp92z"; }; diff --git a/pkgs/development/python-modules/pyqtwebengine/default.nix b/pkgs/development/python-modules/pyqtwebengine/default.nix index c11dcad4d7d3..7ad39633b7e5 100644 --- a/pkgs/development/python-modules/pyqtwebengine/default.nix +++ b/pkgs/development/python-modules/pyqtwebengine/default.nix @@ -1,11 +1,11 @@ -{ lib, stdenv, pythonPackages, pkg-config +{ lib, stdenv, pythonPackages, fetchPypi, pkg-config , qmake, qtbase, qtsvg, qtwebengine , wrapQtAppsHook , darwin }: let - inherit (pythonPackages) buildPythonPackage python isPy27 pyqt5 enum34 sip pyqt-builder; + inherit (pythonPackages) buildPythonPackage python isPy27 pyqt5 sip pyqt-builder; inherit (darwin) autoSignDarwinBinariesHook; in buildPythonPackage rec { pname = "PyQtWebEngine"; @@ -14,7 +14,7 @@ in buildPythonPackage rec { disabled = isPy27; - src = pythonPackages.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "06fc35hzg346a9c86dk7vzm1fakkgzn5l52jfq3bix3587sjip6f"; }; diff --git a/pkgs/development/python-modules/pystemd/default.nix b/pkgs/development/python-modules/pystemd/default.nix index 3e1455128f78..ed282f06b2a1 100644 --- a/pkgs/development/python-modules/pystemd/default.nix +++ b/pkgs/development/python-modules/pystemd/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , lib , python +, fetchPypi , systemd , pytest , mock @@ -10,7 +11,7 @@ buildPythonPackage rec { pname = "pystemd"; version = "0.10.0"; - src = python.pkgs.fetchPypi { + src = fetchPypi { inherit pname version; hash = "sha256-10qBS/2gEIXbGorZC+PLJ9ryOlGrawPn4p7IEfoq6Fk="; }; diff --git a/pkgs/development/tools/aws-sam-cli/default.nix b/pkgs/development/tools/aws-sam-cli/default.nix index 3802e2ee1c74..37d4d0878634 100644 --- a/pkgs/development/tools/aws-sam-cli/default.nix +++ b/pkgs/development/tools/aws-sam-cli/default.nix @@ -1,5 +1,6 @@ { lib , python3 +, fetchPypi , enableTelemetry ? false }: @@ -7,7 +8,7 @@ python3.pkgs.buildPythonApplication rec { pname = "aws-sam-cli"; version = "1.53.0"; - src = python3.pkgs.fetchPypi { + src = fetchPypi { inherit pname version; hash = "sha256-kIW+aGYuS+JgOMsPbeLgPSgLFNKLSqHaZ1CHpjs/IVI="; }; diff --git a/pkgs/development/tools/b4/default.nix b/pkgs/development/tools/b4/default.nix index 2e6f1f42a74a..e6f656c4012e 100644 --- a/pkgs/development/tools/b4/default.nix +++ b/pkgs/development/tools/b4/default.nix @@ -1,10 +1,10 @@ -{ lib, python3Packages, patatt }: +{ lib, python3Packages, fetchPypi, patatt }: python3Packages.buildPythonApplication rec { pname = "b4"; version = "0.12.2"; - src = python3Packages.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "tvSv14v3iigFWzifCQl5Kxx4Bfs1V/XXHvvaNoKqvm4="; }; diff --git a/pkgs/development/tools/backblaze-b2/default.nix b/pkgs/development/tools/backblaze-b2/default.nix index a062d18096dc..353fda20ce19 100644 --- a/pkgs/development/tools/backblaze-b2/default.nix +++ b/pkgs/development/tools/backblaze-b2/default.nix @@ -1,10 +1,10 @@ -{ fetchFromGitHub, lib, python3Packages }: +{ lib, python3Packages, fetchPypi }: python3Packages.buildPythonApplication rec { pname = "backblaze-b2"; version = "3.7.0"; - src = python3Packages.fetchPypi { + src = fetchPypi { inherit version; pname = "b2"; sha256 = "sha256-sW6gaZWUh3WX+0+qHRlQ4gZzKU4bL8ePPNKWo9rdF84="; diff --git a/pkgs/development/tools/build-managers/alibuild/default.nix b/pkgs/development/tools/build-managers/alibuild/default.nix index 4baa144fa815..93709454c7b5 100644 --- a/pkgs/development/tools/build-managers/alibuild/default.nix +++ b/pkgs/development/tools/build-managers/alibuild/default.nix @@ -1,10 +1,10 @@ -{ lib, python }: +{ lib, python, fetchPypi }: python.pkgs.buildPythonApplication rec { pname = "alibuild"; version = "1.11.2"; - src = python.pkgs.fetchPypi { + src = fetchPypi { inherit pname version; hash = "sha256-wq2H2inUf2CjPD45krCNdjw2s4FXsEDlfOHqW8VaVKg="; }; diff --git a/pkgs/development/tools/build-managers/meson/default.nix b/pkgs/development/tools/build-managers/meson/default.nix index 402beff97e52..f6004285ddb4 100644 --- a/pkgs/development/tools/build-managers/meson/default.nix +++ b/pkgs/development/tools/build-managers/meson/default.nix @@ -1,5 +1,6 @@ { lib , stdenv +, fetchPypi , fetchpatch , installShellFiles , ninja @@ -19,7 +20,7 @@ python3.pkgs.buildPythonApplication rec { pname = "meson"; version = "1.1.0"; - src = python3.pkgs.fetchPypi { + src = fetchPypi { inherit pname version; hash = "sha256-2WFsRM1sU2if+PBfxpWKaT8uF8NHKo2vg87lXav/gp8="; }; diff --git a/pkgs/development/tools/cloudsmith-cli/default.nix b/pkgs/development/tools/cloudsmith-cli/default.nix index 65e69c86ed48..ee3cd5ac33a3 100644 --- a/pkgs/development/tools/cloudsmith-cli/default.nix +++ b/pkgs/development/tools/cloudsmith-cli/default.nix @@ -1,5 +1,6 @@ { lib , python3 +, fetchPypi }: python3.pkgs.buildPythonApplication rec { @@ -7,7 +8,7 @@ python3.pkgs.buildPythonApplication rec { version = "0.35.2"; format = "wheel"; - src = python3.pkgs.fetchPypi { + src = fetchPypi { pname = "cloudsmith_cli"; inherit format version; hash = "sha256-+M4CPveS9dltMI291Atm84T/cf4dPOO3wPvPI15E73Y="; diff --git a/pkgs/development/tools/continuous-integration/buildbot/default.nix b/pkgs/development/tools/continuous-integration/buildbot/default.nix index ec3a4a81f60f..8d5e312cc2da 100644 --- a/pkgs/development/tools/continuous-integration/buildbot/default.nix +++ b/pkgs/development/tools/continuous-integration/buildbot/default.nix @@ -1,4 +1,5 @@ { python3 +, fetchPypi , recurseIntoAttrs , callPackage }: @@ -7,7 +8,7 @@ let packageOverrides = self: super: { sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec { version = "1.4.40"; - src = super.fetchPypi { + src = fetchPypi { pname = "SQLAlchemy"; inherit version; hash = "sha256-RKZgUGCAzJdeHfpXdv5fYxXdxiane1C/Du4YsDieomU="; diff --git a/pkgs/development/tools/database/litecli/default.nix b/pkgs/development/tools/database/litecli/default.nix index a1ae54a6dcac..3158ec5dc670 100644 --- a/pkgs/development/tools/database/litecli/default.nix +++ b/pkgs/development/tools/database/litecli/default.nix @@ -1,5 +1,6 @@ { lib , python3Packages +, fetchPypi }: python3Packages.buildPythonApplication rec { @@ -7,7 +8,7 @@ python3Packages.buildPythonApplication rec { version = "1.9.0"; disabled = python3Packages.pythonOlder "3.4"; - src = python3Packages.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "sha256-Ia8s+gg91N8ePMqiohFxKbXxchJ1b1luoJDilndsJ6E="; }; diff --git a/pkgs/development/tools/database/sqlite-web/default.nix b/pkgs/development/tools/database/sqlite-web/default.nix index 9a9314fde9b1..ee333ac02744 100644 --- a/pkgs/development/tools/database/sqlite-web/default.nix +++ b/pkgs/development/tools/database/sqlite-web/default.nix @@ -1,12 +1,13 @@ { lib , python3Packages +, fetchPypi }: python3Packages.buildPythonApplication rec { pname = "sqlite-web"; version = "0.3.6"; - src = python3Packages.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "17pymadm063358nji70xzma64zkfv26c3pai5i1whsfp9ahqzasg"; }; diff --git a/pkgs/development/tools/devpi-client/default.nix b/pkgs/development/tools/devpi-client/default.nix index 906711a81386..8f103fd62861 100644 --- a/pkgs/development/tools/devpi-client/default.nix +++ b/pkgs/development/tools/devpi-client/default.nix @@ -3,6 +3,7 @@ , git , glibcLocales , python3 +, fetchPypi }: python3.pkgs.buildPythonApplication rec { @@ -11,7 +12,7 @@ python3.pkgs.buildPythonApplication rec { format = "setuptools"; - src = python3.pkgs.fetchPypi { + src = fetchPypi { inherit pname version; hash = "sha256-csdQUxnopH+kYtoqdvyXKNW3fGkQNSREJYxjes9Dgi8="; }; diff --git a/pkgs/development/tools/distgen/default.nix b/pkgs/development/tools/distgen/default.nix index d1e506ea9789..0a52eecc2579 100644 --- a/pkgs/development/tools/distgen/default.nix +++ b/pkgs/development/tools/distgen/default.nix @@ -1,10 +1,10 @@ -{ lib, python3 }: +{ lib, python3, fetchPypi }: python3.pkgs.buildPythonApplication rec { pname = "distgen"; version = "1.5"; - src = python3.pkgs.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "08f9rw5irgv0gw7jizk5f9csn0yhrdnb84k40px1zbypsylvr5c5"; }; diff --git a/pkgs/development/tools/eliot-tree/default.nix b/pkgs/development/tools/eliot-tree/default.nix index 7188835e27d0..9ef8dcad374d 100644 --- a/pkgs/development/tools/eliot-tree/default.nix +++ b/pkgs/development/tools/eliot-tree/default.nix @@ -1,10 +1,10 @@ -{ lib, python3Packages }: +{ lib, python3Packages, fetchPypi }: python3Packages.buildPythonApplication rec { pname = "eliot-tree"; version = "19.0.1"; - src = python3Packages.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "18gvijsm0vh3x83mv8dd80c3mpm80r7i111qsg4y7rj4i590phma"; }; diff --git a/pkgs/development/tools/flootty/default.nix b/pkgs/development/tools/flootty/default.nix index e4f76ca9f6af..42829649c605 100644 --- a/pkgs/development/tools/flootty/default.nix +++ b/pkgs/development/tools/flootty/default.nix @@ -1,10 +1,10 @@ -{ lib, python3Packages }: +{ lib, python3Packages, fetchPypi }: python3Packages.buildPythonApplication rec { pname = "Flootty"; version = "3.2.2"; - src = python3Packages.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "0gfl143ly81pmmrcml91yr0ypvwrs5q4s1sfdc0l2qkqpy233ih7"; }; diff --git a/pkgs/development/tools/misc/tockloader/default.nix b/pkgs/development/tools/misc/tockloader/default.nix index 931edf0cf23c..fbca0b0359de 100644 --- a/pkgs/development/tools/misc/tockloader/default.nix +++ b/pkgs/development/tools/misc/tockloader/default.nix @@ -1,12 +1,13 @@ { lib , python3 +, fetchPypi }: python3.pkgs.buildPythonApplication rec { pname = "tockloader"; version = "1.9.0"; - src = python3.pkgs.fetchPypi { + src = fetchPypi { inherit pname version; hash = "sha256-7W55jugVtamFUL8N3dD1LFLJP2UDQb74V6o96rd/tEg="; }; diff --git a/pkgs/development/tools/misc/usbsdmux/default.nix b/pkgs/development/tools/misc/usbsdmux/default.nix index 07db23607ceb..5fda623d819f 100644 --- a/pkgs/development/tools/misc/usbsdmux/default.nix +++ b/pkgs/development/tools/misc/usbsdmux/default.nix @@ -1,10 +1,10 @@ -{ lib, python3Packages }: +{ lib, python3Packages, fetchPypi }: python3Packages.buildPythonApplication rec { pname = "usbsdmux"; version = "0.2.1"; - src = python3Packages.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "sha256-gCxwR5jxzkH22B6nxBwAd0HpwWMIj/zp5VROJ0IWq7c="; }; diff --git a/pkgs/development/tools/patatt/default.nix b/pkgs/development/tools/patatt/default.nix index d819e4f35cfa..847698f79954 100644 --- a/pkgs/development/tools/patatt/default.nix +++ b/pkgs/development/tools/patatt/default.nix @@ -1,10 +1,10 @@ -{ lib, python3Packages }: +{ lib, python3Packages, fetchPypi }: python3Packages.buildPythonApplication rec { pname = "patatt"; version = "0.6.2"; - src = python3Packages.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "sha256-WaEq4qWL6xAZ3cJJ/lkJ5XTIrXcOMIESbytvWbsYx2s="; }; diff --git a/pkgs/development/tools/pifpaf/default.nix b/pkgs/development/tools/pifpaf/default.nix index 0268b90e8b18..fbf281634609 100644 --- a/pkgs/development/tools/pifpaf/default.nix +++ b/pkgs/development/tools/pifpaf/default.nix @@ -1,5 +1,6 @@ { lib , python3 +, fetchPypi }: python3.pkgs.buildPythonApplication rec { @@ -7,7 +8,7 @@ python3.pkgs.buildPythonApplication rec { version = "3.1.5"; format = "setuptools"; - src = python3.pkgs.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "sha256-lmixfUP+pq0RdyXeY6MmUQOx1sMLHqojOKUK1mivbaU="; }; diff --git a/pkgs/development/tools/pypi2nix/default.nix b/pkgs/development/tools/pypi2nix/default.nix index 04d61995d3f7..63e98038ee68 100644 --- a/pkgs/development/tools/pypi2nix/default.nix +++ b/pkgs/development/tools/pypi2nix/default.nix @@ -1,11 +1,12 @@ { python3 +, fetchPypi }: with python3; pkgs.buildPythonApplication rec { pname = "pypi2nix"; version = "2.0.4"; - src = pkgs.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "0y4zkkcijz5hchd8j6a106ysrg1dnad7dzdgnmz38rgm6zbrky0d"; }; diff --git a/pkgs/development/tools/vim-vint/default.nix b/pkgs/development/tools/vim-vint/default.nix index f10c38539a22..d5f37bdb2bbc 100644 --- a/pkgs/development/tools/vim-vint/default.nix +++ b/pkgs/development/tools/vim-vint/default.nix @@ -1,4 +1,4 @@ -{ lib, python3Packages }: +{ lib, python3Packages, fetchPypi }: with python3Packages; @@ -6,7 +6,7 @@ buildPythonApplication rec { pname = "vim-vint"; version = "0.3.21"; - src = python3Packages.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "15qdh8fby9xgfjxidcfv1xmrqqrxxapky7zmyn46qx1abhp9piax"; }; diff --git a/pkgs/development/tools/wllvm/default.nix b/pkgs/development/tools/wllvm/default.nix index 0234c936dc15..7bb63a192e4d 100644 --- a/pkgs/development/tools/wllvm/default.nix +++ b/pkgs/development/tools/wllvm/default.nix @@ -1,10 +1,10 @@ -{ lib, python3Packages }: +{ lib, python3Packages, fetchPypi }: python3Packages.buildPythonApplication rec { version = "1.3.1"; pname = "wllvm"; - src = python3Packages.fetchPypi { + src = fetchPypi { inherit pname version; sha256 = "sha256-PgV6V18FyezIZpqMQEbyv98MaVM7h7T7/Kvg3yMMwzE="; };