75ca762b89
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
45 lines
789 B
Nix
45 lines
789 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pyparsing
|
|
, six
|
|
, pytestCheckHook
|
|
, pretend
|
|
, flit-core
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "packaging";
|
|
version = "20.8";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-eFmBhacAikcNZFJqgFnemqpEkjjygPyetrE7psQQkJM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
];
|
|
|
|
propagatedBuildInputs = [ pyparsing six ];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
pretend
|
|
];
|
|
|
|
checkPhase = ''
|
|
py.test tests
|
|
'';
|
|
|
|
# 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 ];
|
|
};
|
|
}
|