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: 0972bbc12d9d
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 441c85b26c98
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Jan 5, 2021

  1. python3Packages.asyncio-dgram: init at 1.1.1

    fabaff authored and Jonathan Ringer committed Jan 5, 2021
    Copy the full SHA
    b7b0a1f View commit details
  2. python3Packages.pywizlight: init at 0.4.1

    fabaff authored and Jonathan Ringer committed Jan 5, 2021
    Copy the full SHA
    441c85b View commit details
Showing with 71 additions and 0 deletions.
  1. +33 −0 pkgs/development/python-modules/asyncio-dgram/default.nix
  2. +34 −0 pkgs/development/python-modules/pywizlight/default.nix
  3. +4 −0 pkgs/top-level/python-packages.nix
33 changes: 33 additions & 0 deletions pkgs/development/python-modules/asyncio-dgram/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pytest-asyncio
}:

buildPythonPackage rec {
pname = "asyncio-dgram";
version = "1.1.1";

src = fetchFromGitHub {
owner = "jsbronder";
repo = pname;
rev = "v${version}";
sha256 = "1zkmjvq47zw2fsbnzhr5mh9rsazx0z1f8m528ash25jrxsza5crm";
};

checkInputs = [
pytestCheckHook
pytest-asyncio
];

disabledTests = [ "test_protocol_pause_resume" ];
pythonImportsCheck = [ "asyncio_dgram" ];

meta = with lib; {
description = "Python support for higher level Datagram";
homepage = "https://github.com/jsbronder/asyncio-dgram";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/pywizlight/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, asyncio-dgram
, click
}:

buildPythonPackage rec {
pname = "pywizlight";
version = "0.4.1";

src = fetchFromGitHub {
owner = "sbidy";
repo = pname;
rev = "v${version}";
sha256 = "0kyhyda28zbni9sjv6kvky6wlhqldl47niddgpbjsv5dlb9xvxns";
};

propagatedBuildInputs = [
asyncio-dgram
click
];

# no tests are present
doCheck = false;
pythonImportsCheck = [ "pywizlight" ];

meta = with lib; {
description = "Python connector for WiZ light bulbs";
homepage = "https://github.com/sbidy/pywizlight";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -445,6 +445,8 @@ in {

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

asyncio-dgram = callPackage ../development/python-modules/asyncio-dgram { };

asyncio-throttle = callPackage ../development/python-modules/asyncio-throttle { };

asyncpg = callPackage ../development/python-modules/asyncpg { };
@@ -6265,6 +6267,8 @@ in {

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

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

pyxattr = let
pyxattr' = callPackage ../development/python-modules/pyxattr { };
pyxattr_2 = pyxattr'.overridePythonAttrs (oldAttrs: rec {