summary refs log blame commit diff
path: root/pkgs/development/python-modules/packaging/default.nix
blob: 69457e2a5569ec416f2a5d844082714e543f3fc7 (plain) (tree)
1
2
3
4
5
6
7
8
9
     


                    

                 
            
  
 




                                      
 







                                                                     
 
                                          
 



                     
 

                                 
 
                                                                            
 





                                                         
    

         
{ lib
, buildPythonPackage
, fetchPypi
, pyparsing
, pytestCheckHook
, pretend
, setuptools
}:

let
  packaging = buildPythonPackage rec {
    pname = "packaging";
    version = "21.3";
    format = "pyproject";

    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 ];
    };
  };
in
packaging