nixpkgs/pkgs/development/python-modules/packaging/default.nix

28 lines
645 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, fetchPypi
, pyparsing, six, pytest, pretend }:
buildPythonPackage rec {
pname = "packaging";
2018-11-04 10:35:08 +00:00
version = "18.0";
src = fetchPypi {
inherit pname version;
2018-11-04 10:35:08 +00:00
sha256 = "0886227f54515e592aaa2e5a553332c73962917f2831f1b0f9b9f4380a4b9807";
};
propagatedBuildInputs = [ pyparsing six ];
2018-02-18 18:31:39 +00:00
checkInputs = [ pytest pretend ];
checkPhase = ''
py.test tests
'';
meta = with stdenv.lib; {
description = "Core utilities for Python packages";
homepage = https://github.com/pypa/packaging;
license = [ licenses.bsd2 licenses.asl20 ];
maintainers = with maintainers; [ bennofs ];
};
}