Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3eae73d86270
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b1280aaa3e33
Choose a head ref
  • 2 commits
  • 2 files changed
  • 2 contributors

Commits on Jan 29, 2021

  1. Copy the full SHA
    cd6aa10 View commit details
  2. Merge pull request #109482 from fabaff/aiocoap

    python3Packages.aiocoap: init at 0.4b3
    mweinelt authored Jan 29, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b1280aa View commit details
Showing with 33 additions and 0 deletions.
  1. +31 −0 pkgs/development/python-modules/aiocoap/default.nix
  2. +2 −0 pkgs/top-level/python-packages.nix
31 changes: 31 additions & 0 deletions pkgs/development/python-modules/aiocoap/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, python
}:

buildPythonPackage rec {
pname = "aiocoap";
version = "0.4b3";

src = fetchFromGitHub {
owner = "chrysn";
repo = pname;
rev = version;
sha256 = "1zjg475xgvi19rqg7jmfgy5nfabq50aph0231p9jba211ps7cmxw";
};

checkPhase = ''
${python.interpreter} -m aiocoap.cli.defaults
${python.interpreter} -m unittest discover -v
'';

pythonImportsCheck = [ "aiocoap" ];

meta = with lib; {
description = "Python CoAP library";
homepage = "https://aiocoap.readthedocs.io/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -204,6 +204,8 @@ in {

aioamqp = callPackage ../development/python-modules/aioamqp { };

aiocoap = callPackage ../development/python-modules/aiocoap { };

aioconsole = callPackage ../development/python-modules/aioconsole { };

aiocontextvars = callPackage ../development/python-modules/aiocontextvars { };