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`.
31 lines
770 B
Nix
31 lines
770 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dill";
|
|
version = "0.2.8.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "53a6d7bf74f737a514cb89f72d0cb8b80dbd44a9cbbffaa14bffb57f4d7c3822";
|
|
};
|
|
|
|
# Messy test suite. Even when running the tests like tox does, it fails
|
|
doCheck = false;
|
|
checkPhase = ''
|
|
for test in tests/*.py; do
|
|
${python.interpreter} $test
|
|
done
|
|
'';
|
|
# Following error without setting checkPhase
|
|
# TypeError: don't know how to make test from: {'byref': False, 'recurse': False, 'protocol': 3, 'fmode': 0}
|
|
|
|
meta = {
|
|
description = "Serialize all of python (almost)";
|
|
homepage = http://www.cacr.caltech.edu/~mmckerns/dill.htm;
|
|
license = lib.licenses.bsd3;
|
|
};
|
|
} |