mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 21:17:46 +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`.
27 lines
592 B
Nix
27 lines
592 B
Nix
{ buildPythonPackage
|
|
, fetchPypi
|
|
, lib
|
|
, pexpect
|
|
, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-timeout";
|
|
version = "1.3.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "08b550b498b9251901a3747f02aa2624ed53a9c8285ca482551346c85b47d641";
|
|
};
|
|
buildInputs = [ pytest ];
|
|
checkInputs = [ pytest pexpect ];
|
|
checkPhase = ''pytest -ra'';
|
|
|
|
meta = with lib;{
|
|
description = "py.test plugin to abort hanging tests";
|
|
homepage = http://bitbucket.org/pytest-dev/pytest-timeout/;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ makefu ];
|
|
};
|
|
}
|