2020-11-29 14:04:35 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pyparsing
|
|
|
|
, six
|
|
|
|
, pytestCheckHook
|
|
|
|
, pretend
|
|
|
|
, flit-core
|
|
|
|
}:
|
2017-07-15 09:33:16 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "packaging";
|
2020-11-29 14:04:35 +00:00
|
|
|
version = "20.7";
|
|
|
|
format = "pyproject";
|
2017-07-15 09:33:16 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:35 +00:00
|
|
|
sha256 = "Ba87uF0yA3fbKBzyVKsFDhp+vL9UEGhamkB+GKH4EjY=";
|
2017-07-15 09:33:16 +01:00
|
|
|
};
|
|
|
|
|
2020-11-29 14:04:35 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
2017-07-15 09:33:16 +01:00
|
|
|
propagatedBuildInputs = [ pyparsing six ];
|
|
|
|
|
2020-11-29 14:04:35 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pretend
|
|
|
|
];
|
2018-02-18 18:31:39 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests
|
|
|
|
'';
|
2017-07-15 09:33:16 +01:00
|
|
|
|
2019-06-15 18:22:24 +01:00
|
|
|
# Prevent circular dependency
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-07-15 09:33:16 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Core utilities for Python packages";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pypa/packaging";
|
2017-07-15 09:33:16 +01:00
|
|
|
license = [ licenses.bsd2 licenses.asl20 ];
|
|
|
|
maintainers = with maintainers; [ bennofs ];
|
|
|
|
};
|
|
|
|
}
|