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

29 lines
No EOL
608 B
Nix

{ fetchurl
, lib
, buildPythonPackage
, python
, isPyPy
, isPy3k
}:
buildPythonPackage rec{
pname = "yenc";
version = "0.4.0";
src = fetchurl {
url = "https://bitbucket.org/dual75/yenc/get/${version}.tar.gz";
sha256 = "0zkyzxgq30mbrzpnqam4md0cb09d5falh06m0npc81nnlhcghkp7";
};
checkPhase = ''
${python.interpreter} -m unittest discover -s test
'';
disabled = isPy3k || isPyPy;
meta = {
description = "Encoding and decoding yEnc";
license = lib.licenses.lgpl21;
homepage = https://bitbucket.org/dual75/yenc;
maintainers = with lib.maintainers; [ fridh ];
};
}