From f93dfd52594bf53889456f7797dd199bca2292ad Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Wed, 31 May 2017 22:57:42 +0200 Subject: [PATCH] pythonPackages.semver: move to pkgs/development/python-modules --- .../python-modules/semver/default.nix | 19 +++++++++++++++ pkgs/top-level/python-packages.nix | 23 +------------------ 2 files changed, 20 insertions(+), 22 deletions(-) create mode 100644 pkgs/development/python-modules/semver/default.nix diff --git a/pkgs/development/python-modules/semver/default.nix b/pkgs/development/python-modules/semver/default.nix new file mode 100644 index 000000000000..285da5460717 --- /dev/null +++ b/pkgs/development/python-modules/semver/default.nix @@ -0,0 +1,19 @@ +{ stdenv, fetchPypi, buildPythonPackage }: + +buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "semver"; + version = "2.2.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "161gvsfpw0l8lnf1v19rvqc8b9f8n70cc8ppya4l0n6rwc1c1n4m"; + }; + + meta = with stdenv.lib; { + description = "Python package to work with Semantic Versioning (http://semver.org/)"; + homepage = "https://github.com/k-bx/python-semver"; + license = licenses.bsd3; + maintainers = with maintainers; [ np ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 37a04872e9c0..f0450ca3e483 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -29640,28 +29640,7 @@ EOF ecpy = callPackage ../development/python-modules/ecpy { }; - trezor = callPackage ../development/python-modules/trezor { }; - - semver = buildPythonPackage rec { - name = "semver-${version}"; - version = "2.2.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/s/semver/${name}.tar.gz"; - sha256 = "161gvsfpw0l8lnf1v19rvqc8b9f8n70cc8ppya4l0n6rwc1c1n4m"; - }; - - meta = { - description = "Python package to work with Semantic Versioning (http://semver.org/)"; - homepage = "https://github.com/k-bx/python-semver"; - license = licenses.bsd3; - maintainers = with maintainers; [ np ]; - }; - }; - - ed25519 = buildPythonPackage rec { - name = "ed25519-${version}"; - version = "1.4"; + semver = callPackage ../development/python-modules/semver { }; src = pkgs.fetchurl { url = "mirror://pypi/e/ed25519/${name}.tar.gz";