mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 01:20:40 +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`.
33 lines
623 B
Nix
33 lines
623 B
Nix
{ buildPythonPackage
|
|
, lib
|
|
, fetchPypi
|
|
, requests
|
|
, pytest
|
|
, six
|
|
, werkzeug
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-localserver";
|
|
version = "0.4.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a72af60a1ec8f73668a7884c86baf1fbe48394573cb4fa36709887217736c021";
|
|
};
|
|
|
|
propagatedBuildInputs = [ werkzeug ];
|
|
buildInputs = [ pytest six requests ];
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
meta = {
|
|
description = "Plugin for the pytest testing framework to test server connections locally";
|
|
homepage = https://pypi.python.org/pypi/pytest-localserver;
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|
|
|