From 096a07f5e274c2cfdcdb5c9b26d347517d5419ef Mon Sep 17 00:00:00 2001 From: Richard Marko Date: Thu, 1 Feb 2018 22:30:26 +0100 Subject: [PATCH] python-can: init at 2.0.0 --- .../python-modules/can/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 1 + 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/python-modules/can/default.nix diff --git a/pkgs/development/python-modules/can/default.nix b/pkgs/development/python-modules/can/default.nix new file mode 100644 index 000000000000..fbb53828d2af --- /dev/null +++ b/pkgs/development/python-modules/can/default.nix @@ -0,0 +1,27 @@ +{ lib +, stdenv +, buildPythonPackage +, fetchPypi +, pyserial +, nose +, mock }: + +buildPythonPackage rec { + pname = "python-can"; + version = "2.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1c6zfd29ck9ffdklfb5xgxvfl52xdaqd89isykkypm1ll97yk2fs"; + }; + + propagatedBuildInputs = [ pyserial ]; + checkInputs = [ nose mock ]; + + meta = with lib; { + homepage = https://github.com/hardbyte/python-can; + description = "CAN support for Python"; + license = licenses.lgpl3; + maintainers = with maintainers; [ sorki ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cabc5f5796c7..aefff25ec596 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2014,6 +2014,7 @@ in { doCheck = false; }); + can = callPackage ../development/python-modules/can {}; cairocffi = buildPythonPackage rec { name = "cairocffi-0.7.2";