diff --git a/pkgs/development/python-modules/twitter-common-collections/default.nix b/pkgs/development/python-modules/twitter-common-collections/default.nix new file mode 100644 index 000000000000..b2d6054aa258 --- /dev/null +++ b/pkgs/development/python-modules/twitter-common-collections/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, twitter-common-lang +}: + +buildPythonPackage rec { + pname = "twitter.common.collections"; + version = "0.3.9"; + + src = fetchPypi { + inherit pname version; + sha256 = "0wf8ks6y2kalx2inzayq0w4kh3kg25daik1ac7r6y79i03fslsc5"; + }; + + propagatedBuildInputs = [ twitter-common-lang ]; + + meta = with stdenv.lib; { + description = "Twitter's common collections"; + homepage = "https://twitter.github.io/commons/"; + license = licenses.asl20; + maintainers = with maintainers; [ copumpkin ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ce0ad9cfbc8f..b2e624e18088 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4013,25 +4013,7 @@ in { twitter = callPackage ../development/python-modules/twitter { }; - twitter-common-collections = buildPythonPackage rec { - pname = "twitter.common.collections"; - version = "0.3.9"; - name = "${pname}-${version}"; - - src = self.fetchPypi { - inherit pname version; - sha256 = "0wf8ks6y2kalx2inzayq0w4kh3kg25daik1ac7r6y79i03fslsc5"; - }; - - propagatedBuildInputs = with self; [ twitter-common-lang ]; - - meta = { - description = "Twitter's common collections"; - homepage = "https://twitter.github.io/commons/"; - license = licenses.asl20; - maintainers = with maintainers; [ copumpkin ]; - }; - }; + twitter-common-collections = callPackage ../development/python-modules/twitter-common-collections { }; twitter-common-confluence = buildPythonPackage rec { pname = "twitter.common.confluence";