nixpkgs-suyu/pkgs/development/python-modules/pyzufall/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
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`.
2018-06-23 18:14:26 +02:00

29 lines
790 B
Nix

{ stdenv, fetchPypi, python, buildPythonPackage, nose, future, coverage }:
buildPythonPackage rec {
pname = "PyZufall";
version = "0.13.2";
src = fetchPypi {
inherit pname version;
sha256 = "1jffhi20m82fdf78bjhncbdxkfzcskrlipxlrqq9741xdvrn14b5";
};
# disable tests due to problem with nose
# https://github.com/nose-devs/nose/issues/1037
doCheck = false;
checkInputs = [ nose coverage ];
propagatedBuildInputs = [ future ];
checkPhase = ''
${python.interpreter} setup.py nosetests
'';
meta = with stdenv.lib; {
homepage = https://pyzufall.readthedocs.io/de/latest/;
description = "Library for generating random data and sentences in german language";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ davidak ];
};
}