mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01: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`.
41 lines
852 B
Nix
41 lines
852 B
Nix
{ stdenv
|
|
, fetchPypi
|
|
, buildPythonApplication
|
|
, guessit
|
|
, babelfish
|
|
, enzyme
|
|
, beautifulsoup4
|
|
, requests
|
|
, click
|
|
, dogpile_cache
|
|
, stevedore
|
|
, chardet
|
|
, pysrt
|
|
, six
|
|
, appdirs
|
|
, rarfile
|
|
, pytz
|
|
, futures
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "subliminal";
|
|
version = "2.0.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1dzv5csjcwgz69aimarx2c6606ckm2gbn4x2mzydcqnyai7sayhl";
|
|
};
|
|
|
|
# Too many test dependencies
|
|
doCheck = false;
|
|
propagatedBuildInputs = [ guessit babelfish enzyme beautifulsoup4 requests
|
|
click dogpile_cache stevedore chardet pysrt six
|
|
appdirs rarfile pytz futures ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/Diaoul/subliminal;
|
|
description = "Python library to search and download subtitles";
|
|
license = licenses.mit;
|
|
};
|
|
}
|