Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 21 additions & 15 deletions pkgs/development/python-modules/pyasn1-modules/default.nix
Original file line number Diff line number Diff line change
@@ -1,35 +1,41 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, pyasn1
, pytest
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
pname = "pyasn1-modules";
version = "0.2.8";
version = "0.3.0";

src = fetchPypi {
inherit pname version;
sha256 = "905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e";
disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "pyasn1";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-AAS1VuppCIxgswpLSHFAc6q9cyJBLpdDuU9D1KU13vg=";
};

propagatedBuildInputs = [ pyasn1 ];
propagatedBuildInputs = [
pyasn1
];

nativeCheckInputs = [
pytest
pytestCheckHook
];

# running tests through setup.py fails only for python2 for some reason:
# AttributeError: 'module' object has no attribute 'suitetests'
checkPhase = ''
py.test
'';
pythonImportsCheck = [
"pyasn1_modules"
];

meta = with lib; {
description = "A collection of ASN.1-based protocols modules";
homepage = "https://pypi.python.org/pypi/pyasn1-modules";
homepage = "https://github.com/pyasn1/pyasn1-modules";
changelog = "https://github.com/pyasn1/pyasn1-modules/releases/tag/v${version}";
license = licenses.bsd3;
platforms = platforms.unix; # same as pyasn1
maintainers = with maintainers; [ ];
};
}
20 changes: 15 additions & 5 deletions pkgs/development/python-modules/pyasn1/default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
{ lib, buildPythonPackage, fetchPypi, }:
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
}:

buildPythonPackage rec {
pname = "pyasn1";
version = "0.4.8";
version = "0.5.0";
format = "setuptools";

disabled = pythonOlder "3.7";

src = fetchPypi {
inherit pname version;
sha256 = "aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba";
hash = "sha256-l7cpDKaOYqgyVY7Dl28Vy/kRv118cDnYuGHCoOzmn94=";
};

pythonImportsCheck = [ "pyasn1" ];
pythonImportsCheck = [
"pyasn1"
];

meta = with lib; {
description = "Generic ASN.1 library for Python";
homepage = "https://github.com/etingof/pyasn1";
homepage = "https://pyasn1.readthedocs.io";
changelog = "https://github.com/etingof/pyasn1/blob/master/CHANGES.rst";
license = licenses.bsd2;
maintainers = with maintainers; [ SuperSandro2000 ];
};
Expand Down