query
On this page

fetchPypi

pkgs.fetchPypi

Functor
Docs pulled from | This Revision | 18 minutes ago


Contribute
Enhance the ecosystem with your expertise! Contribute to fill the gaps in documentation. Your input can make a difference.

Noogle detected

This is a Functor

Learn about functors

Implementation

The following is the current implementation of this function.

{
    format ? "setuptools",
    sha256 ? "",
    hash ? "",
    pname,
    version,
    ...
  }@attrs:
  let
    url = computeUrl (
      removeAttrs attrs [
        "sha256"
        "hash"
      ]
    );
    meta = {
      identifiers.purlParts = {
        type = "pypi";
        # https://github.com/package-url/purl-spec/blob/main/types/pypi-definition.json
        spec = "${normalizePypiName pname}@${version}";
      };
    };
  in
  fetchurl {
    inherit
      url
      sha256
      hash
      meta
      ;
  }