diff --git a/pkgs/development/python-modules/filebytes/default.nix b/pkgs/development/python-modules/filebytes/default.nix new file mode 100644 index 000000000000..3dbcbe594425 --- /dev/null +++ b/pkgs/development/python-modules/filebytes/default.nix @@ -0,0 +1,22 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "filebytes"; + version = "0.9.12"; + + src = fetchPypi { + inherit pname version; + sha256 = "6cd1c4ca823f6541c963a317e55382609789802dedad08209f4d038369e3f0ac"; + }; + + meta = with stdenv.lib; { + homepage = "https://scoding.de/filebytes-introduction"; + license = licenses.gpl2; + description = "Scripts to parse ELF, PE, Mach-O and OAT (Android Runtime)"; + maintainers = with maintainers; [ bennofs ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1cbaad29e910..28517aec0cc1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2384,20 +2384,7 @@ in { pycodestyle = callPackage ../development/python-modules/pycodestyle { }; - filebytes = buildPythonPackage rec { - name = "filebytes-0.9.12"; - src = pkgs.fetchurl { - url = "mirror://pypi/f/filebytes/${name}.tar.gz"; - sha256 = "6cd1c4ca823f6541c963a317e55382609789802dedad08209f4d038369e3f0ac"; - }; - propagatedBuildInputs = [ ]; - meta = with pkgs.stdenv.lib; { - homepage = "https://scoding.de/filebytes-introduction"; - license = licenses.gpl2; - description = "Scripts to parse ELF, PE, Mach-O and OAT (Android Runtime)"; - maintainers = with maintainers; [ bennofs ]; - }; - }; + filebytes = callPackage ../development/python-modules/filebytes { }; filelock = callPackage ../development/python-modules/filelock {};