diff --git a/pkgs/development/python-modules/twitter-common-dirutil/default.nix b/pkgs/development/python-modules/twitter-common-dirutil/default.nix new file mode 100644 index 000000000000..0172232a7504 --- /dev/null +++ b/pkgs/development/python-modules/twitter-common-dirutil/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, twitter-common-lang +}: + +buildPythonPackage rec { + pname = "twitter.common.dirutil"; + version = "0.3.9"; + + src = fetchPypi { + inherit pname version; + sha256 = "1wpjfmmxsdwnbx5dl13is4zkkpfcm94ksbzas9y2qhgswfa9jqha"; + }; + + propagatedBuildInputs = [ twitter-common-lang ]; + + meta = with stdenv.lib; { + description = "Utilities for manipulating and finding files and directories"; + 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 0559ee7f8558..8ce4b953e801 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4017,25 +4017,7 @@ in { twitter-common-confluence = callPackage ../development/python-modules/twitter-common-confluence { }; - twitter-common-dirutil = buildPythonPackage rec { - pname = "twitter.common.dirutil"; - version = "0.3.9"; - name = "${pname}-${version}"; - - src = self.fetchPypi { - inherit pname version; - sha256 = "1wpjfmmxsdwnbx5dl13is4zkkpfcm94ksbzas9y2qhgswfa9jqha"; - }; - - propagatedBuildInputs = with self; [ twitter-common-lang ]; - - meta = { - description = "Utilities for manipulating and finding files and directories"; - homepage = "https://twitter.github.io/commons/"; - license = licenses.asl20; - maintainers = with maintainers; [ copumpkin ]; - }; - }; + twitter-common-dirutil = callPackage ../development/python-modules/twitter-common-dirutil { }; twitter-common-lang = buildPythonPackage rec { pname = "twitter.common.lang";