diff --git a/pkgs/development/python-modules/ruamel_base/default.nix b/pkgs/development/python-modules/ruamel_base/default.nix new file mode 100644 index 000000000000..ba6a79fdd634 --- /dev/null +++ b/pkgs/development/python-modules/ruamel_base/default.nix @@ -0,0 +1,21 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "ruamel.base"; + version = "1.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1wswxrn4givsm917mfl39rafgadimf1sldpbjdjws00g1wx36hf0"; + }; + + meta = with stdenv.lib; { + description = "Common routines for ruamel packages"; + homepage = https://bitbucket.org/ruamel/base; + license = licenses.mit; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6e4f400bcf96..7533bac85199 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3654,21 +3654,7 @@ in { squaremap = callPackage ../development/python-modules/squaremap { }; - ruamel_base = buildPythonPackage rec { - name = "ruamel.base-${version}"; - version = "1.0.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/r/ruamel.base/${name}.tar.gz"; - sha256 = "1wswxrn4givsm917mfl39rafgadimf1sldpbjdjws00g1wx36hf0"; - }; - - meta = { - description = "Common routines for ruamel packages"; - homepage = https://bitbucket.org/ruamel/base; - license = licenses.mit; - }; - }; + ruamel_base = callPackage ../development/python-modules/ruamel_base { }; ruamel_ordereddict = buildPythonPackage rec { name = "ruamel.ordereddict-${version}";