python39Packages.packaging: add tests, remove unused six

This commit is contained in:
Sandro Jäckel 2022-03-29 21:46:26 +02:00
parent df0f3ba49a
commit 64208378a8
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -2,40 +2,44 @@
, buildPythonPackage
, fetchPypi
, pyparsing
, six
, pytestCheckHook
, pretend
, setuptools
}:
buildPythonPackage rec {
pname = "packaging";
version = "21.3";
format = "pyproject";
let
packaging = buildPythonPackage rec {
pname = "packaging";
version = "21.3";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-3UfEKSfYmrkR5gZRiQfMLTofOLvQJjhZcGQ/nFuOz+s=";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-3UfEKSfYmrkR5gZRiQfMLTofOLvQJjhZcGQ/nFuOz+s=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ pyparsing ];
checkInputs = [
pytestCheckHook
pretend
];
# Prevent circular dependency
doCheck = false;
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 ];
};
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ pyparsing six ];
checkInputs = [
pytestCheckHook
pretend
];
# Prevent circular dependency
doCheck = false;
meta = with lib; {
description = "Core utilities for Python packages";
homepage = "https://github.com/pypa/packaging";
license = [ licenses.bsd2 licenses.asl20 ];
maintainers = with maintainers; [ bennofs ];
};
}
in
packaging