forked from mirrors/nixpkgs
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`.
27 lines
649 B
Nix
27 lines
649 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, nose }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "podcastparser";
|
|
version = "0.6.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gpodder";
|
|
repo = "podcastparser";
|
|
rev = version;
|
|
sha256 = "1mhg7192d6s1ll9mx1b63yfj6k4cnv4i95jllbnydyjv9ykkv0k1";
|
|
};
|
|
|
|
propagatedBuildInputs = [ ];
|
|
|
|
buildInputs = [ nose ];
|
|
|
|
checkPhase = "nosetests test_*.py";
|
|
|
|
meta = {
|
|
description = "podcastparser is a simple, fast and efficient podcast parser written in Python.";
|
|
homepage = http://gpodder.org/podcastparser/;
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ mic92 ];
|
|
};
|
|
}
|