depot/third_party/nixpkgs/pkgs/development/python-modules/packaging/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

47 lines
943 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, flit-core
, pretend
, pytestCheckHook
, pythonOlder
}:
let
packaging = buildPythonPackage rec {
pname = "packaging";
version = "23.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-tq0pf4kH3g+i/hzL0m/a84f19Hxydf7fjM6J+ZRGz5c=";
};
nativeBuildInputs = [
flit-core
];
nativeCheckInputs = [
pytestCheckHook
pretend
];
# Prevent circular dependency with pytest
doCheck = false;
pythonImportsCheck = [ "packaging" ];
passthru.tests = packaging.overridePythonAttrs (_: { doCheck = true; });
meta = with lib; {
description = "Core utilities for Python packages";
homepage = "https://github.com/pypa/packaging";
license = with licenses; [ bsd2 asl20 ];
maintainers = with maintainers; [ bennofs ];
};
};
in
packaging