From 258fee9987871603f622cd983e143158612a1eac Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sat, 31 Mar 2018 11:26:19 +0200 Subject: [PATCH] pythonPackages.atomiclong: Move to own file --- .../python-modules/atomiclong/default.nix | 21 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +----------------- 2 files changed, 22 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/atomiclong/default.nix diff --git a/pkgs/development/python-modules/atomiclong/default.nix b/pkgs/development/python-modules/atomiclong/default.nix new file mode 100644 index 000000000000..8f3aae7b19dd --- /dev/null +++ b/pkgs/development/python-modules/atomiclong/default.nix @@ -0,0 +1,21 @@ +{ stdenv, buildPythonPackage, fetchPypi, pytest, cffi }: + +buildPythonPackage rec { + pname = "atomiclong"; + version = "0.1.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "1gjbc9lvpkgg8vj7dspif1gz9aq4flkhxia16qj6yvb7rp27h4yb"; + }; + + buildInputs = [ pytest ]; + propagatedBuildInputs = [ cffi ]; + + meta = with stdenv.lib; { + description = "Long data type with atomic operations using CFFI"; + homepage = https://github.com/dreid/atomiclong; + license = licenses.mit; + maintainers = with maintainers; [ robbinch ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 86bfe600fba3..de5c441cc46a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -555,25 +555,7 @@ in { asn1ate = callPackage ../development/python-modules/asn1ate { }; - atomiclong = buildPythonPackage rec { - version = "0.1.1"; - name = "atomiclong-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/a/atomiclong/atomiclong-${version}.tar.gz"; - sha256 = "1gjbc9lvpkgg8vj7dspif1gz9aq4flkhxia16qj6yvb7rp27h4yb"; - }; - buildInputs = with self; [ pytest ]; - propagatedBuildInputs = with self; [ cffi ]; - - meta = { - description = "Long data type with atomic operations using CFFI"; - homepage = https://github.com/dreid/atomiclong; - license = licenses.mit; - maintainers = with maintainers; [ robbinch ]; - }; - - }; + atomiclong = callPackage ../development/python-modules/atomiclong { }; atomicwrites = buildPythonPackage rec { version = "0.1.9";