mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 18:34:41 +00:00
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
26 lines
661 B
Nix
26 lines
661 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, nose, mercurial, isPy3k }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "python-hglib";
|
|
version = "2.6.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "7c1fa0cb4d332dd6ec8409b04787ceba4623e97fb378656f7cab0b996c6ca3b2";
|
|
};
|
|
|
|
checkInputs = [ nose ];
|
|
buildInputs = [ mercurial ];
|
|
|
|
checkPhase = ''python test.py'';
|
|
doCheck = if isPy3k then false else true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Mercurial Python library";
|
|
homepage = "http://selenic.com/repo/python-hglib";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dfoxfranke ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|