uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
34
pkgs/development/python-modules/pyasn/default.nix
Normal file
34
pkgs/development/python-modules/pyasn/default.nix
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, fetchFromGitHub, python, }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyasn";
|
||||
version = "1.6.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-6UK1SRY2Pse4tw6urs0OtOQe8bz0ojl7KabXFfzN+SU=";
|
||||
};
|
||||
|
||||
datasrc = fetchFromGitHub {
|
||||
owner = "hadiasghari";
|
||||
repo = "pyasn";
|
||||
rev = "${version}";
|
||||
sha256 = "sha256-R7Vi1Mn44Mg3HQLDk9O43MkXXwbLRr/jjVKSHJvgYj0";
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
install -dm755 $out/${python.sitePackages}/pyasn/data
|
||||
cp $datasrc/data/* $out/${python.sitePackages}/pyasn/data
|
||||
'';
|
||||
|
||||
doCheck = false; # Tests require internet connection which wont work
|
||||
|
||||
pythonImportsCheck = [ "pyasn" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Offline IP address to Autonomous System Number lookup module";
|
||||
homepage = "https://github.com/hadiasghari/pyasn";
|
||||
license = with licenses; [ bsdOriginal mit ];
|
||||
maintainers = with maintainers; [ onny ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue