mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +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`.
22 lines
612 B
Nix
22 lines
612 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, python
|
|
, pytest, pytestcov, watchdog, mock
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hupper";
|
|
version = "1.3";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "20387760e4d32bd4813c2cabc8e51d92b2c22c546102a0af182c33c152cd7ede";
|
|
};
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
# FIXME: watchdog dependency is disabled on Darwin because of #31865, which causes very silent
|
|
# segfaults in the testsuite that end up failing the tests in a background thread (in myapp)
|
|
checkInputs = [ pytest pytestcov mock ] ++ stdenv.lib.optional (!stdenv.isDarwin) watchdog;
|
|
}
|