From 0d041c02ef01fbe100d11484f739cd8b4761f235 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Sun, 28 Oct 2018 12:01:26 -0400 Subject: [PATCH] pythonPakcages.twitter-common-collections: refactor move to python-modules --- .../twitter-common-collections/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +-------------- 2 files changed, 26 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/twitter-common-collections/default.nix 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";