mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-10 15:04:44 +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`.
21 lines
493 B
Nix
21 lines
493 B
Nix
{ lib, fetchPypi, buildPythonPackage }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyserial";
|
|
version="3.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "09y68bczw324a4jb9a1cfwrbjhq179vnfkkkrybbksp0vqgl0bbf";
|
|
};
|
|
|
|
checkPhase = "python -m unittest discover -s test";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/pyserial/pyserial";
|
|
license = licenses.psfl;
|
|
description = "Python serial port extension";
|
|
maintainers = with maintainers; [ makefu ];
|
|
};
|
|
}
|