mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +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`.
25 lines
558 B
Nix
25 lines
558 B
Nix
{ lib, buildPythonPackage, fetchPypi,
|
|
flask, six, marshmallow
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "flask-marshmallow";
|
|
version = "0.9.0";
|
|
|
|
meta = {
|
|
homepage = "https://github.com/marshmallow-code/flask-marshmallow";
|
|
description = "Flask + marshmallow for beautiful APIs";
|
|
license = lib.licenses.mit;
|
|
};
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "db7aff4130eb99fd05ab78fd2e2c58843ba0f208899aeb1c14aff9cd98ae8c80";
|
|
};
|
|
|
|
propagatedBuildInputs = [ flask marshmallow ];
|
|
buildInputs = [ six ];
|
|
|
|
doCheck = false;
|
|
}
|