Files
nixpkgs/pkgs/development/python-modules/nixpkgs/default.nix
T
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

35 lines
744 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pbr
, pythonix
, pythonAtLeast
}:
buildPythonPackage rec {
pname = "nixpkgs";
version = "0.2.4";
format = "setuptools";
disabled = ! pythonAtLeast "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "0dlvq4bpamhlva86042wlc0xxfsxlpdgm2adfb1c6y3vjgbm0nvd";
};
buildInputs = [ pbr ];
propagatedBuildInputs = [ pythonix ];
# does not have any tests
doCheck = false;
pythonImportsCheck = [ "nixpkgs" ];
meta = with lib; {
description = "Allows to `from nixpkgs import` stuff in interactive Python sessions";
homepage = "https://github.com/t184256/nixpkgs-python-importer";
license = licenses.mit;
maintainers = with maintainers; [ t184256 ];
};
}