nixpkgs-suyu/pkgs/development/python-modules/pytest-datafiles/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

18 lines
507 B
Nix

{ stdenv, buildPythonPackage, fetchPypi, py, pytest }:
buildPythonPackage rec {
pname = "pytest-datafiles";
version = "1.0";
src = fetchPypi {
inherit version pname;
sha256 = "1w5435b5pimk6479ml53lmld3qbag7awcg4gl3ljdywc1v096r5v";
};
buildInputs = [ py pytest ];
meta = with stdenv.lib; {
license = licenses.mit;
homepage = https://pypi.python.org/pypi/pytest-catchlog/;
description = "py.test plugin to create a 'tmpdir' containing predefined files/directories.";
};
}