mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +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`.
20 lines
517 B
Nix
20 lines
517 B
Nix
{ stdenv, buildPythonPackage, fetchPypi }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "markdown2";
|
|
version = "2.3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
extension = "zip";
|
|
sha256 = "8bb9a24eb2aa02f1427aabe46483f0f0215ab18c8a345315ae8e2ee3c3a09c03";
|
|
};
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A fast and complete Python implementation of Markdown";
|
|
homepage = https://github.com/trentm/python-markdown2;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hbunke ];
|
|
};
|
|
}
|