mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +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`.
24 lines
579 B
Nix
24 lines
579 B
Nix
{ lib, buildPythonPackage, youtube-dl, fetchPypi }:
|
|
buildPythonPackage rec {
|
|
pname = "pafy";
|
|
version = "0.5.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "e842dc589a339a870b5869cc3802f2e95824edf347f65128223cd5ebdff21024";
|
|
};
|
|
|
|
# No tests included in archive
|
|
doCheck = false;
|
|
|
|
propagatedBuildInputs = [ youtube-dl ];
|
|
|
|
meta = with lib; {
|
|
description = "A library to download YouTube content and retrieve metadata";
|
|
homepage = http://np1.github.io/pafy/;
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ odi ];
|
|
};
|
|
}
|
|
|