forked from mirrors/nixpkgs
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`.
33 lines
659 B
Nix
33 lines
659 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy33
|
|
, pythonOlder
|
|
, asyncio
|
|
, singledispatch
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiofiles";
|
|
version = "0.3.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "852a493a877b73e11823bfd4e8e5ef2610d70d12c9eaed961bcd9124d8de8c10";
|
|
};
|
|
|
|
disabled = pythonOlder "3.3";
|
|
|
|
propagatedBuildInputs = lib.optionals isPy33 [ asyncio singledispatch ];
|
|
|
|
# No tests in archive
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "File support for asyncio";
|
|
homepage = https://github.com/Tinche/aiofiles;
|
|
license = with lib.licenses; [ asl20 ];
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
};
|
|
}
|