python.pkgs.packaging: move to separate expression
This commit is contained in:
parent
9115f68bde
commit
cca503b389
24
pkgs/development/python-modules/packaging/default.nix
Normal file
24
pkgs/development/python-modules/packaging/default.nix
Normal file
@ -0,0 +1,24 @@
|
||||
{ stdenv, buildPythonPackage, fetchPypi
|
||||
, pyparsing, six, pytest, pretend }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "packaging";
|
||||
version = "16.8";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "5d50835fdf0a7edf0b55e311b7c887786504efea1177abd7e69329a8e5ea619e";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyparsing six ];
|
||||
|
||||
buildInputs = [ pytest pretend ];
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -29892,22 +29892,7 @@ EOF
|
||||
};
|
||||
};
|
||||
|
||||
packaging = buildPythonPackage rec {
|
||||
name = "packaging-16.8";
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/p/packaging/${name}.tar.gz";
|
||||
sha256 = "5d50835fdf0a7edf0b55e311b7c887786504efea1177abd7e69329a8e5ea619e";
|
||||
};
|
||||
propagatedBuildInputs = with self; [ pyparsing six ];
|
||||
buildInputs = with self; [ pytest pretend ];
|
||||
|
||||
meta = with pkgs.stdenv.lib; {
|
||||
description = "Core utilities for Python packages";
|
||||
homepage = "https://github.com/pypa/packaging";
|
||||
license = [ licenses.bsd2 licenses.asl20 ];
|
||||
maintainers = with maintainers; [ bennofs ];
|
||||
};
|
||||
};
|
||||
packaging = callPackage ../development/python-modules/packaging { };
|
||||
|
||||
pytoml = callPackage ../development/python-modules/pytoml { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user