From 09010da567ca97926c295ac819c8d0430cbb6283 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 6 Jan 2021 09:35:13 +0100 Subject: [PATCH 1/4] python3Packages.sortedcollections: 1.2.1 -> 1.2.3 --- pkgs/development/python-modules/sortedcollections/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/sortedcollections/default.nix b/pkgs/development/python-modules/sortedcollections/default.nix index 3742c625205c..31d365305e60 100644 --- a/pkgs/development/python-modules/sortedcollections/default.nix +++ b/pkgs/development/python-modules/sortedcollections/default.nix @@ -6,11 +6,11 @@ buildPythonPackage rec { pname = "sortedcollections"; - version = "1.2.1"; + version = "1.2.3"; src = fetchPypi { inherit pname version; - sha256 = "0sihzm5aqz7r3irh4jn6rzicb7lf81d27z7vl6kaslnhwcsizhsq"; + sha256 = "0i9cvwz4gikkp5jmk0bzsbyisnwy4sfazm9bg7b8q9j266plr4rl"; }; propagatedBuildInputs = [ sortedcontainers ]; From 4a91e76faebdbe6c8fa523b7206d2c9adc50179d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 6 Jan 2021 09:39:25 +0100 Subject: [PATCH 2/4] python3Packages.sortedcollections: use GitHub as source and enable tests python3Packages.sortedcollections: enable tests python3Packages.sortedcollections: add pythonImportsCheck --- .../python-modules/sortedcollections/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/sortedcollections/default.nix b/pkgs/development/python-modules/sortedcollections/default.nix index 31d365305e60..7b861f7bdfc2 100644 --- a/pkgs/development/python-modules/sortedcollections/default.nix +++ b/pkgs/development/python-modules/sortedcollections/default.nix @@ -1,6 +1,7 @@ { stdenv , buildPythonPackage -, fetchPypi +, fetchFromGitHub +, pytestCheckHook , sortedcontainers }: @@ -8,15 +9,18 @@ buildPythonPackage rec { pname = "sortedcollections"; version = "1.2.3"; - src = fetchPypi { - inherit pname version; - sha256 = "0i9cvwz4gikkp5jmk0bzsbyisnwy4sfazm9bg7b8q9j266plr4rl"; + src = fetchFromGitHub { + owner = "grantjenks"; + repo = "python-sortedcollections"; + rev = "v${version}"; + sha256 = "06ifkbhkj5fpsafibw0fs7b778g7q0gd03crvbjk04k0f3wjxc5z"; }; propagatedBuildInputs = [ sortedcontainers ]; - # No tests in PyPi tarball - doCheck = false; + checkInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "sortedcollections" ]; meta = with stdenv.lib; { description = "Python Sorted Collections"; From 25e483b3c3ec45061d7301f24f98028ef7dd8708 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 6 Jan 2021 09:44:46 +0100 Subject: [PATCH 3/4] python3Packages.sortedcollections: update attributes --- pkgs/development/python-modules/sortedcollections/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/sortedcollections/default.nix b/pkgs/development/python-modules/sortedcollections/default.nix index 7b861f7bdfc2..b0b3df19bac3 100644 --- a/pkgs/development/python-modules/sortedcollections/default.nix +++ b/pkgs/development/python-modules/sortedcollections/default.nix @@ -25,7 +25,7 @@ buildPythonPackage rec { meta = with stdenv.lib; { description = "Python Sorted Collections"; homepage = "http://www.grantjenks.com/docs/sortedcollections/"; - license = licenses.asl20; + license = with licenses; [ asl20 ]; + maintainers = with maintainers; [ fab ]; }; - } From 93f7742d6135ec53fd0197e453ef19fdb10a6184 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 10 Jan 2021 15:56:55 +0100 Subject: [PATCH 4/4] google-music-scripts: fix build --- pkgs/tools/audio/google-music-scripts/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/audio/google-music-scripts/default.nix b/pkgs/tools/audio/google-music-scripts/default.nix index 272cf9025392..481a7ecb75b3 100644 --- a/pkgs/tools/audio/google-music-scripts/default.nix +++ b/pkgs/tools/audio/google-music-scripts/default.nix @@ -26,11 +26,11 @@ buildPythonApplication rec { sha256 = "0apwgj86whrc077dfymvyb4qwj19bawyrx49g4kg364895v0rbbq"; }; - # pendulum pinning was to prevent PEP517 from trying to build from source + # there are already later releases present postPatch = '' substituteInPlace setup.py \ --replace "tomlkit>=0.5,<0.6" "tomlkit" \ - --replace "pendulum>=2.0,<=3.0,!=2.0.5,!=2.1.0" "pendulum" + --replace "attrs>=18.2,<19.4" "attrs" ''; propagatedBuildInputs = [