nixpkgs/pkgs/development/python-modules/spambayes/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

20 lines
499 B
Nix

{ buildPythonPackage, isPy3k, fetchPypi, bsddb3, pydns, lockfile }:
buildPythonPackage rec {
pname = "spambayes";
version = "1.1b2";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1542dwdsmkav38cfjlbgf3bzz3z8nk7wzq173ya8ipk7g8g6s64d";
};
propagatedBuildInputs = [ bsddb3 pydns lockfile ];
meta = {
description = "Statistical anti-spam filter, initially based on the work of Paul Graham";
homepage = http://spambayes.sourceforge.net/;
};
}