From 07f611a12de5d6213048c78fff2e2bba92cf1161 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sat, 31 Mar 2018 11:48:34 +0200 Subject: [PATCH] pythonPackages.noise: Move to own file --- .../python-modules/noise/default.nix | 18 ++++++++++++++++++ pkgs/top-level/python-packages.nix | 17 +---------------- 2 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 pkgs/development/python-modules/noise/default.nix diff --git a/pkgs/development/python-modules/noise/default.nix b/pkgs/development/python-modules/noise/default.nix new file mode 100644 index 000000000000..d136c41aa370 --- /dev/null +++ b/pkgs/development/python-modules/noise/default.nix @@ -0,0 +1,18 @@ +{ stdenv, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "noise"; + version = "1.2.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "0rcv40dcshqpchwkdlhsv3n68h9swm9fh4d1cgzr2hsp6rs7k8jp"; + }; + + meta = with stdenv.lib; { + homepage = https://github.com/caseman/noise; + description = "Native-code and shader implementations of Perlin noise"; + license = licenses.mit; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5ea79eae9b8c..f06ccd31df19 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -625,22 +625,7 @@ in { awesome-slugify = callPackage ../development/python-modules/awesome-slugify {}; - noise = buildPythonPackage rec { - name = "noise-${version}"; - version = "1.2.2"; - - src = pkgs.fetchurl { - url = "mirror://pypi/n/noise/${name}.tar.gz"; - sha256 = "0rcv40dcshqpchwkdlhsv3n68h9swm9fh4d1cgzr2hsp6rs7k8jp"; - }; - - meta = with stdenv.lib; { - homepage = "https://github.com/caseman/noise"; - description = "Native-code and shader implementations of Perlin noise"; - license = licenses.mit; - platforms = platforms.all; - }; - }; + noise = callPackage ../development/python-modules/noise {}; azure = buildPythonPackage rec { version = "0.11.0";