diff --git a/pkgs/development/python-modules/sortedcontainers/default.nix b/pkgs/development/python-modules/sortedcontainers/default.nix new file mode 100644 index 000000000000..1252c676646d --- /dev/null +++ b/pkgs/development/python-modules/sortedcontainers/default.nix @@ -0,0 +1,24 @@ +{ lib +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "sortedcontainers"; + version = "2.0.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "607294c6e291a270948420f7ffa1fb3ed47384a4c08db6d1e9c92d08a6981982"; + }; + + # pypi tarball does not come with tests + doCheck = false; + + meta = { + description = "Python Sorted Container Types: SortedList, SortedDict, and SortedSet"; + homepage = http://www.grantjenks.com/docs/sortedcontainers/; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ costrouc ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1dbab2d1d803..1ec2e5169890 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -503,6 +503,8 @@ in { sip = callPackage ../development/python-modules/sip { }; + sortedcontainers = callPackage ../development/python-modules/sortedcontainers { }; + sklearn-deap = callPackage ../development/python-modules/sklearn-deap { }; slackclient = callPackage ../development/python-modules/slackclient { }; @@ -7561,26 +7563,6 @@ in { brotlipy = callPackage ../development/python-modules/brotlipy { }; - sortedcontainers = buildPythonPackage rec { - name = "sortedcontainers-${version}"; - version = "1.5.7"; - - src = pkgs.fetchurl { - url = "mirror://pypi/s/sortedcontainers/${name}.tar.gz"; - sha256 = "1sjh8lccbmvwna91mlhl5m3z4320p07h063b8x8br4p4cll49w0g"; - }; - - # tries to run tests for all python versions and uses virtualenv weirdly - doCheck = false; - #buildInputs = with self; [ tox nose ]; - - meta = { - description = "Python Sorted Container Types: SortedList, SortedDict, and SortedSet"; - homepage = "http://www.grantjenks.com/docs/sortedcontainers/"; - license = licenses.asl20; - }; - }; - sortedcollections = buildPythonPackage rec { name = "sortedcollections-${version}"; version = "0.4.2";