mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 09:02:46 +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`.
26 lines
578 B
Nix
26 lines
578 B
Nix
{ lib, buildPythonPackage, fetchPypi,
|
|
flake8, py, pyflakes, six, tox
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "serpy";
|
|
version = "0.3.1";
|
|
|
|
meta = {
|
|
description = "ridiculously fast object serialization";
|
|
homepage = https://github.com/clarkduvall/serpy;
|
|
license = lib.licenses.mit;
|
|
};
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "3772b2a9923fbf674000ff51abebf6ea8f0fca0a2cfcbfa0d63ff118193d1ec5";
|
|
};
|
|
|
|
buildInputs = [ flake8 py pyflakes tox ];
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
# ImportError: No module named 'tests
|
|
doCheck = false;
|
|
}
|