Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / packaging / 2.nix
bloba9b4e159469db849f7cf4d9f309e01b9eeb7fd3d
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pyparsing
5 , six
6 , pytestCheckHook
7 , pretend
8 , flit-core
9 }:
11 # We keep 20.4 because it uses setuptools instead of flit-core
12 # which requires Python 3 to build a universal wheel.
14 buildPythonPackage rec {
15   pname = "packaging";
16   version = "20.4";
17   format = "setuptools";
19   src = fetchPypi {
20     inherit pname version;
21     sha256 = "4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8";
22   };
24   propagatedBuildInputs = [ pyparsing six ];
26   checkInputs = [
27     pytestCheckHook
28     pretend
29   ];
31   # Prevent circular dependency
32   doCheck = false;
34   meta = with lib; {
35     description = "Core utilities for Python packages";
36     homepage = "https://github.com/pypa/packaging";
37     license = [ licenses.bsd2 licenses.asl20 ];
38     maintainers = with maintainers; [ bennofs ];
39   };