Change:
<ins> { lib, stdenv, python3Packages, fetchPypi, autoPatchelfHook, libxcrypt-legacy, }: let platformInfos = { "x86_64-linux" = { platform = "manylinux1_x86_64"; hash = "sha256-gr5z8VYkuCqgmcnyA01/Ez6aX9NrKR4MgA0Bc6IHnfs="; }; "x86_64-darwin" = { platform = "macosx_10_9_universal2"; hash = "sha256-5LsxeozPgInUC1QAxDSlr8NIfmRSl5BN+g9/ZYAxiRE="; }; }; platformInfo = platformInfos.${stdenv.system} or (throw "Unsupported platform ${stdenv.system}"); in python3Packages.buildPythonApplication rec { pname = "sourcery"; version = "1.16.0"; format = "wheel"; src = fetchPypi { inherit pname version format; inherit (platformInfo) platform hash; }; nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook ]; buildInputs = [ libxcrypt-legacy ]; meta = { changelog = "https://sourcery.ai/changelog/"; description = "An AI-powered code review and pair programming tool for Python"; downloadPage = "https://pypi.org/project/sourcery/"; homepage = "https://sourcery.ai"; license = lib.licenses.unfree; mainProgram = "sourcery"; maintainers = with lib.maintainers; [ tomasajt ]; platforms = [ "x86_64-linux" "x86_64-darwin" ]; }; } </ins>

Discussion:
Add to packages <!-- Describe the project a little: -- is a non free package for Python which is available from this . Or it can be made available for VScode via this . Similar for Vim, Command Line, PyCharm, Emacs or Sublime. I tried to add this this to my within a vsocde section: { name = "sourcery.sourcery"; publisher = ""; version = "1.6.0"; sha256 = "0000000000000000000000000000000000000000000000000000"; } But result: Cant install sourcery for vscode: home-manager build switch produces building '/nix/store/ag5i8qpv0wkpayjvnkdi0dnwdmhrqa12-'... trying % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (22) The requested URL returned error: 400 error: cannot download from any mirror error: builder for '/nix/store/ag5i8qpv0wkpayjvnkdi0dnwdmhrqa12-' failed with exit code 1; last 7 log lines: For full logs, run 'nix log /nix/store/ag5i8qpv0wkpayjvnkdi0dnwdmhrqa12-'.

error: 1 dependencies of derivation '/nix/store/z62dqgjxbm3v3p4hj62bf4aa9nv8y1ix-vscode-extension-' failed to build error: 1 dependencies of derivation '/nix/store/y3rmcb7pcc9j03j0408dsn6g5cnzkvw5-' failed to build error: 1 dependencies of derivation '/nix/store/ixfc6bjhprz4n88zk6rsgzs8kas925xi-home-manager-' failed to build error: 1 dependencies of derivation '/nix/store/qfxzn9qqbzpq5mmsk1py6ni9lw70zhgk-home-manager-' failed to build` When I visit the link in browser I get: I note that searching Nix packages for sourcery produces a result for Code Sourcery C++ ABI, which is unrelated, hence the name should be distinctive. Metadata homepage URL: source URL: and and and license: mit platforms: linux, darwin
PR available.

Project description Automatically review and improve your Python code. Metadata homepage URL: source URL: license: mit platforms: unix, linux, darwin Analysis Naively installing the package with python works, but at runtime this error is shown most likely because it is a generic linux binary and we need to patchelf it. Is this analysis correct? Pointers Ideally the associated VS Code should be available as well. Related PR is .